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
Everything is fine, although huntingSkill should be a string (enum)
But when you change a property that is defined in the base component, e.g.
"status": 3,
you'll get two errors, that status should be string, and that it should be one of the 3 enum values.
This issue becomes even worse, when additionalProperties is set to false in the openAPI specification of the base component.
The huntingSkill would not even be allowed, although it is a property of the derived Cat component.
The text was updated successfully, but these errors were encountered:
We are trying to model inheritance according to
https://swagger.io/docs/specification/data-models/inheritance-and-polymorphism/
To test the problem, please use the petstore example of your tests:
test/data/valid_openapi/petstore-detailed.yaml
in the API explorer.Add a new pet to the store
.cat
and have the cat specific properties validated (huntingSkill
)Everything is fine, although
huntingSkill
should be a string (enum)But when you change a property that is defined in the base component, e.g.
you'll get two errors, that status should be string, and that it should be one of the 3 enum values.
This issue becomes even worse, when
additionalProperties
is set to false in the openAPI specification of the base component.The huntingSkill would not even be allowed, although it is a property of the derived Cat component.
The text was updated successfully, but these errors were encountered: