README.md
<p align="center">
<a href="https://hexdocs.pm/pravda/"><img src="https://img.shields.io/badge/api-docs-green" alt="Docs"/></a>
<a href="https://travis-ci.com/mogorman/pravda"><img src="https://travis-ci.com/mogorman/pravda.svg?branch=master" alt="Build"/></a>
<a href="https://coveralls.io/github/mogorman/pravda?branch=master"><img src="https://coveralls.io/repos/github/mogorman/pravda/badge.svg" alt="Code Coverage"/></a>
<a href="https://hex.pm/packages/pravda"><img src="http://img.shields.io/hexpm/v/pravda.svg" alt="Package"/></a>
<a href="COPYING.txt"><img src="http://img.shields.io/hexpm/l/pravda.svg" alt="License"/></a>
<img src="https://img.shields.io/hexpm/dt/pravda" alt="Downloads"/>
</p>
![Pravda logo](/pravda_logo.png)
Pravda is a validator for openapi 3.0 specs.
```elixir
plug(Pravda.Plugs.Validate, %{
router: SomeApi.Router,
specs: [
Pravda.Loader.read_file(
"deps/api_specs/compiled_spec/openapi.json"
),
],
})
```