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