interagent / committee

A collection of Rack middleware to support JSON Schema.
MIT License
881 stars 135 forks source link

Can enum values be validated on a request ? #397

Open muraaano opened 1 year ago

muraaano commented 1 year ago

On a request, request format can be validated by Committee::Middleware::RequestValidation. But enums definition looks like not be validated by that.

I think it is useful to be validated because application code have not implement it like duplication. Can we do that with some option ?

I checked enums mismatch on request won't raise exception with: