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
Having one spec with optional properties and creating a derived spec using allOf that makes a property required fails. This should be supported according to json schema itself (e.g. here)
Expected behaviour: an error that the required property some_prop is missing. The code actually correctly figures that out, but when it tries to check whether it is ok to have that property missing because it is e.g. a readOnly missing in a write operation a "runtime" error is produced instead of a validation exception:
Having one spec with optional properties and creating a derived spec using
allOf
that makes a property required fails. This should be supported according to json schema itself (e.g. here)To reproduce (with 0.1.5):
Expected behaviour: an error that the required property
some_prop
is missing. The code actually correctly figures that out, but when it tries to check whether it is ok to have that property missing because it is e.g. areadOnly
missing in a write operation a "runtime" error is produced instead of a validation exception:The problem is that here
schema
is only the second schema with therequired
- but the property can come from any schema in theallOf
.The text was updated successfully, but these errors were encountered: