schema
ModuleThe canonical schema tree.
A Schema is one node: the annotations every kind shares (title,
description, nullable, default, enum, format, ...) and its
SchemaKind. References stay unexpanded (SchemaKind::Reference):
recursive schema graphs are legal, so reading never follows them;
Specification::resolve_schema
follows a chain of them on request.
Contents
use utopia_openapi::Annotations;pub struct AnnotationsThe annotations every schema kind shares, for building a schema
(CompositeSchema::compose); a Schema carries them as its own fields.
use utopia_openapi::ArraySchema;pub struct ArraySchemaThe keywords of an array schema.
use utopia_openapi::CompositeSchema;pub struct CompositeSchemaoneOf, anyOf or allOf over member schemas, and/or not.
use utopia_openapi::Condition;pub struct ConditionA property that must hold one literal value.
use utopia_openapi::ConditionalReference;pub struct ConditionalReferenceOne member of a union, recognised by required literal properties.
use utopia_openapi::Discriminator;pub struct DiscriminatorThe discriminator of a composite schema.
use utopia_openapi::NumericSchema;pub struct NumericSchemaThe keywords of an integer or number schema.
use utopia_openapi::ObjectSchema;pub struct ObjectSchemaThe keywords of an object schema.
use utopia_openapi::Schema;pub struct SchemaOne node of the schema tree.
use utopia_openapi::StringSchema;pub struct StringSchemaThe keywords of a string schema.
use utopia_openapi::AdditionalProperties;pub enum AdditionalPropertiesWhat additionalProperties allows.
use utopia_openapi::Composition;pub enum CompositionHow a composite schema combines its members.
use utopia_openapi::SchemaKind;pub enum SchemaKindThe kind of a schema, with the keywords only that kind has.