openapi-core icon indicating copy to clipboard operation
openapi-core copied to clipboard

[Bug]: minItems and maxItems are not validated

Open jitka opened this issue 1 year ago • 1 comments

Actual Behavior

Validaton of (requests) request having json body with array ignore when minItems or maxItems are exeded.

Expected Behavior

It raise InvalidData exeption simarly as for maxlength maximum enum,...

Steps to Reproduce

write test of validation different wrong values

OpenAPI Core Version

openapi-core 0.17.1, openapi-schema-validator 0.4.4, openapi-spec-validator 0.5.6

OpenAPI Core Integration

requests

Affected Area(s)

unmarshaling

References

No response

Anything else we need to know?

No response

Would you like to implement a fix?

None

jitka avatar Apr 14 '23 16:04 jitka

Hi @jitka

there is already test for minitems

please provide minimal example to reproduce the issue

p1c2u avatar Apr 15 '23 13:04 p1c2u