# schema-catalog
[](https://crates.io/crates/schema-catalog)
[](https://docs.rs/schema-catalog)
[](https://github.com/lintel-rs/lintel/actions/workflows/ci.yml)
[](https://github.com/lintel-rs/lintel/blob/master/LICENSE)
Types for the JSON Schema catalog format (`schema-catalog.json`), compatible with [SchemaStore](https://www.schemastore.org/).
Part of the [Lintel](https://github.com/lintel-rs/lintel) project.
## Usage
```rust
use schema_catalog::{Catalog, parse_catalog};
let json = r#"{"version":1,"schemas":[{"name":"Example","description":"An example schema","url":"https://example.com/schema.json","fileMatch":["*.example.json"]}]}"#;
let catalog: Catalog = parse_catalog(json).unwrap();
assert_eq!(catalog.schemas[0].name, "Example");
```
## License
Apache-2.0