reactive_graph_type_system_rest/
lib.rs

1use actix_web::HttpResponse;
2use schemars::Schema;
3
4pub mod components;
5pub mod entities;
6pub mod flows;
7pub mod relations;
8
9pub(crate) fn json_schema_response(schema: Schema) -> HttpResponse {
10    HttpResponse::Ok().content_type("application/schema+json".to_string()).json(schema)
11}