dpp_domain/schemas/mod.rs
1//! Versioned schema registry for EU ESPR sector schemas.
2//!
3//! The registry ships with compile-time embedded schemas and supports runtime
4//! registration of new versions ("hot-reload"). This lets a running platform
5//! absorb delegated-act schema changes without recompilation.
6//!
7//! Embedded schemas come from `dpp-core/schemas/{sector}/v{version}.json`.
8//! Runtime schemas are registered via [`VersionedSchemaRegistry::register`].
9
10mod embedded;
11pub mod lens;
12#[cfg(test)]
13mod tests;
14mod types;
15mod versioned;
16
17pub use lens::{DerivedView, Lens, LensError, LensRegistry, UpcastError};
18pub use types::{SchemaEntry, SchemaOrigin, SchemaRegistrationError};
19pub use versioned::VersionedSchemaRegistry;