1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
mod definitions_map;
mod draft;
mod error;
mod schema;
mod schematic;
pub use definitions_map::DefinitionsMap;
pub use draft::Draft;
pub use error::Error;
pub use schema::{
r#type::*,
Definitions,
Schema,
Type,
};
pub use schematic::Schematic;
/// Alias for a `Result` with the error type `rschema::Error`.
///
pub type Result<T> = std::result::Result<T, Error>;
pub(crate) fn is_falsy(b: &Option<bool>) -> bool {
*b != Some(true)
}