A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
schema.h File Reference
#include <string>
#include <string_view>
#include <vector>
#include <nlohmann/json_fwd.hpp>
#include "a11/flow/diagnostic.h"
#include "a11/flow/plan.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  a11::flow::SchemaImport
 The shapes a JSON Schema describes, and what would not fit. More...
 

Namespaces

namespace  a11
 
namespace  a11::flow
 

Functions

nlohmann::json a11::flow::DtoToJsonSchema (const DtoPlan &dto, const Program &program)
 The JSON Schema a struct describes.
 
SchemaImport a11::flow::JsonSchemaToDtos (const nlohmann::json &schema, std::string_view name)
 The shapes schema describes, named name where it does not name itself.
 
std::string a11::flow::DtoToFlow (const DtoPlan &dto)
 One shape as the Flow text that declares it.
 

Variables

constexpr std::string_view a11::flow::kSchemaFormat = "flow.schema/v1"
 The format field of the schema envelope.
 
constexpr std::string_view a11::flow::kFlowTypeKey = "x-a11-type"
 The extension key that says which Flow type a string really is.
 
constexpr std::string_view a11::flow::kFlowOrderKey = "x-a11-order"
 The extension key holding a shape's fields in declaration order.