Describe the bug
OpenAPI 3.1 inherits data types from JSON Schema 2020-12, where we can use prefixItems keyword to define tuple value, instead of items keyword.
After changes from #2638 we got an error, when schema contains prefixItems:
Schemas with "type: array", require a sibling "items" field
Describe the bug OpenAPI 3.1 inherits data types from JSON Schema 2020-12, where we can use
prefixItems
keyword to define tuple value, instead ofitems
keyword. After changes from #2638 we got an error, when schema containsprefixItems
:To Reproduce
test.yaml
:Run validation:
Expected behavior Field
items
should not be required whenprefixItems
field is defined.Environment (remove any that are not applicable):
Additional context This issue related to #2638.