A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::flow::SchemaImport Struct Reference

The shapes a JSON Schema describes, and what would not fit. More...

#include <cpp/a11/flow/schema.h>

Public Attributes

std::vector< DtoPlan > dtos
 The shape the schema itself is, followed by every $defs entry it named.
 
std::vector< Diagnostic > diagnostics
 What did not map, as diagnostics rather than a refusal.
 

Detailed Description

The shapes a JSON Schema describes, and what would not fit.

Member Data Documentation

◆ diagnostics

std::vector<Diagnostic> a11::flow::SchemaImport::diagnostics

What did not map, as diagnostics rather than a refusal.

A schema out in the world uses keywords the language has no spelling for

oneOf, additionalProperties, $dynamicRef – and the useful answer is the shape it did describe plus a list of what was dropped, not nothing at all. Nothing here has a source range: there is no Flow text to point at.

◆ dtos

std::vector<DtoPlan> a11::flow::SchemaImport::dtos

The shape the schema itself is, followed by every $defs entry it named.

In that order because the first is the one the caller asked about; the rest are there because a field refers to them and a shape is no use without the shapes it names.


The documentation for this struct was generated from the following file: