Crate yaml_schema

Crate yaml_schema 

Source

Re-exports§

pub use engine::Engine;
pub use error::Error;
pub use reference::Reference;
pub use schemas::AnyOfSchema;
pub use schemas::ArraySchema;
pub use schemas::BoolOrTypedSchema;
pub use schemas::ConstSchema;
pub use schemas::EnumSchema;
pub use schemas::IntegerSchema;
pub use schemas::NotSchema;
pub use schemas::NumberSchema;
pub use schemas::ObjectSchema;
pub use schemas::OneOfSchema;
pub use schemas::Schema;
pub use schemas::StringSchema;
pub use schemas::TypedSchema;
pub use schemas::YamlSchema;
pub use validation::Context;
pub use validation::Validator;

Modules§

engine
error
loader
The loader module loads the YAML schema from a file into the in-memory model
reference
schemas
utils
validation

Macros§

expected_mapping
expected_scalar
expected_type_is_string
fail_fast
generic_error
schema_loading_error
unsupported_type

Structs§

RootSchema
A RootSchema represents the root document in a schema file, and can include additional fields not present in the ‘base’ YamlSchema
RootSchemaBuilder

Enums§

ConstValue
A ConstValue is similar to a saphyr::Scalar, but for validating “number” types we treat integers and floating point values as ‘fungible’ and represent them using the Number enum.
Number
A Number is either an integer or a float

Functions§

version

Type Aliases§

Result