Strict assert_schema #521
-
Is there a way to strictly assert a schema? I would like to validate my actual JSON responses with a schema (to check if it's in-sync with the OpenAPI schema). I tried this using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Just put |
Beta Was this translation helpful? Give feedback.
Just put
additionalProperties: false
in your schema, it is the way to specify that any property not explicitly defined in the schema is not allowed.