swagger-routes icon indicating copy to clipboard operation
swagger-routes copied to clipboard

Unexpected fields validation

Open kibertoad opened this issue 7 years ago • 1 comments

Currently swagger-routes silently accepts unsupported fields. It would be useful to be able to enable enforcement of only defined fields to be present.

kibertoad avatar Sep 23 '17 21:09 kibertoad

Actually, it is already supported by using JSON schema property "additionalProperties": false

Not sure if it would be worth to mention that fact in swagger-route documentation, given that it is standard, but non-obvious JSON schema feature.

kibertoad avatar Sep 23 '17 21:09 kibertoad