Pravda v0.2.1 Pravda.Plugs.Validate View Source
Validates input and output according to an OpenAPI specs.
Usage:
Add the plug at the bottom of one or more pipelines in router.ex
:
pipeline "api" do
# ...
plug Pravada.Plugs.Validate, specs: [ "some_spec.json" ]
end