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
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
As you can see, schemas in anyOf duplicate all params of root object like maxProperties.
Considering that using union adds multiple copies of that object to anyOf and to be valid instance has to be valid to any of them, does it make sense to keep root properties when anyOf is present?
As I imagine it maxProperties or additionalProperties will not be used in validation, because instance will be validated against schemas from anyOf.
I may be wrong here.
The text was updated successfully, but these errors were encountered:
This applied to anyOf/oneOf/allOf.
Having RAML type:
Canonical form will be:
As you can see, schemas in
anyOf
duplicate all params of root object likemaxProperties
.Considering that using union adds multiple copies of that object to
anyOf
and to be valid instance has to be valid to any of them, does it make sense to keep root properties whenanyOf
is present?As I imagine it
maxProperties
oradditionalProperties
will not be used in validation, because instance will be validated against schemas fromanyOf
.I may be wrong here.
The text was updated successfully, but these errors were encountered: