#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
mod error;
pub(crate) mod parser;
pub mod schema;
pub use error::Error;
pub fn parse(input: &str) -> Result<schema::Schema, Error> {
let schema = parser::parse(input)?;
schema::Schema::validate_parsed_schema(schema)
}