You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@p1c2u one subtle subcase of this: according to the documentation, additionalProperties should also accept boolean values, eg.: additionalProperties: true, which if I get it right means "additional properties with any type are accepted":
additionalProperties - Value can be boolean or object. Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.
Also, it seems that additionalProperties: true should considered as the default starting from OpenAPI 3.0, at least this will be in the documentation starting at 3.0.2, see this change: https://github.com/OAI/OpenAPI-Specification/pull/1548/files. Not sure though if this should be already reflected here or not.
Hi,
Not sure if I'm doing something wrong or if
additionalProperties
is missing proper support.Here is my test case:
Which raises the error
openapi_core.exceptions.UndefinedSchemaProperty: Undefined properties in schema: {'error_key'}
.I'm expecting instead that any key is allowed in the
Error
schema, given I'm usingadditionalProperties
(see http://json-schema.org/latest/json-schema-validation.html#rfc.section.6.5.6 and this discussion).Thanks for your inputs on this! :)
The text was updated successfully, but these errors were encountered: