Validating nested items
in array elements types
#155
Labels
area/schema
Indicates an issue on schema area
items
in array elements types
#155
Uh oh!
There was an error while loading. Please reload this page.
Hey,
I encountered one problem I haven't found solution for when using the
openapi-core
:I developed the schema with an array property:
I wrote the tests to verify that the
errors
array does contain theErrorReference
objects by comparing examplary dictionary against the schema I defined using registered schemas accessible inSpec.components.schemas
.When adding nested
items
entry under the existingitems
:then what I expected was that the upper-level
items
would be inferred with thearray
type, the lower-levelitems
withErrorReference
type (so that we would have the array of arrays ofErrorReference
s) and the validation would fail due to the incorrect type found in while validating examplary object dictionary against the schema.The tests still pass and regardless of how many nested
items
entries are added.Is it a bug/missing functionality in the validation or am I not using the library correctly to validate nested arrays types?
Many thanks for the response.
The text was updated successfully, but these errors were encountered: