Skip to main content

Crate yaml_schema

Crate yaml_schema 

Source
Expand description

yaml-schema is a library for validating YAML data against a JSON Schema.

Re-exports§

pub use engine::Engine;
pub use error::Error;
pub use reference::RefUri;
pub use reference::Reference;
pub use schemas::RootSchema;
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
The schemas defined in YAML Schema
utils
Various utility functions
validation
The validation module contains the logic for validating a YAML schema against a YAML value

Macros§

circular_reference
expected_mapping
expected_scalar
expected_type_is_string
fail_fast
generic_error
schema_loading_error
unsupported_type

Enums§

ConstValue
A ConstValue represents a constant value for the const keyword. Per JSON Schema, const can be any JSON value: null, boolean, number, string, array, or object.
Number
A Number is either an integer or a float

Functions§

version

Type Aliases§

Result