17#ifndef A11_FLOW_SCHEMA_H_
18#define A11_FLOW_SCHEMA_H_
24#include <nlohmann/json_fwd.hpp>
47 std::string_view
name);
Definition catalogue.cc:29
nlohmann::json DtoToJsonSchema(const DtoPlan &dto, const Program &program)
Converts a Flow shape to JSON Schema Draft 2020-12.
Definition schema.cc:818
SchemaImport JsonSchemaToDtos(const nlohmann::json &schema, std::string_view name)
Imports shapes from schema, using name when the root has no name.
Definition schema.cc:835
constexpr std::string_view kFlowOrderKey
Extension key preserving a shape's field declaration order.
Definition schema.h:59
constexpr std::string_view kSchemaFormat
The format field of the schema envelope.
Definition schema.h:53
std::string DtoToFlow(const DtoPlan &dto)
Renders one shape as formatted Flow source.
Definition schema.cc:890
constexpr std::string_view kFlowTypeKey
The extension key that says which Flow type a string really is.
Definition schema.h:56
One compiled struct: a shape a port may be typed with.
Definition plan.h:87
The shapes a JSON Schema describes, and what would not fit.
Definition schema.h:37
std::vector< DtoPlan > dtos
Root shape followed by referenced $defs entries.
Definition schema.h:39
std::vector< Diagnostic > diagnostics
Unsupported schema features reported without Flow source ranges.
Definition schema.h:41