# stac-validate
[](https://github.com/stac-utils/stac-rs/actions/workflows/ci.yml)
[](https://docs.rs/stac-validate/latest/stac-validate/)
[](https://crates.io/crates/stac-validate)

[](./CODE_OF_CONDUCT)
Validate [STAC](https://stacspec.org/) with [json-schema](https://json-schema.org/).
## Usage
To use the library in your project:
```toml
[dependencies]
stac-validate = "0.3"
```
## Examples
```rust
use stac_validate::Validate;
let item: stac::Item = stac::read("examples/simple-item.json").unwrap();
tokio_test::block_on(async {
item.validate().await.unwrap();
});
```
Please see the [documentation](https://docs.rs/stac-validate) for more usage examples.
## Other info
This crate is part of the [stac-rs](https://github.com/stac-utils/stac-rs) monorepo, see its README for contributing and license information.