Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: minItems and maxItems are not validated #558

Open
jitka opened this issue Apr 14, 2023 · 1 comment
Open

[Bug]: minItems and maxItems are not validated #558

jitka opened this issue Apr 14, 2023 · 1 comment
Labels
kind/bug Indicates an issue

Comments

@jitka
Copy link
Contributor

jitka commented Apr 14, 2023

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 jitka added the kind/bug Indicates an issue label Apr 14, 2023
@p1c2u
Copy link
Collaborator

p1c2u commented Apr 15, 2023

Hi @jitka

there is already test for minitems

please provide minimal example to reproduce the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Indicates an issue
Projects
None yet
Development

No branches or pull requests

2 participants