jacksmith15 / statham-schema

Statham is a Python Model Parsing Library for JSON Schema.
https://statham-schema.readthedocs.io/en/latest/
MIT License
39 stars 10 forks source link

Support `const` generic keyword #9

Closed jacksmith15 closed 4 years ago

jacksmith15 commented 4 years ago

Need to support parsing and validation of the enum generic keyword. Expected behaviour is described here.

This will need an update to the base Schema model, with a corresponding validator. Schemas which declare const values outside of their accepted types should fail to parse.