Skip to content

minItems does not override a ref to an array #1378

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

Closed
3 tasks done
epicfaace opened this issue Jul 31, 2019 · 2 comments · Fixed by #1380
Closed
3 tasks done

minItems does not override a ref to an array #1378

epicfaace opened this issue Jul 31, 2019 · 2 comments · Fixed by #1380
Labels

Comments

@epicfaace
Copy link
Member

Prerequisites

Description

minItems does not override a ref to an array.

Steps to Reproduce

Try this schema.

Expected behavior

minItems should be 3, so it should give an error.

Actual behavior

No error is given; thus, minItems has not been respected.

Note, though, that the expected behavior is shown when minItems is passed in directly inside the ref object, at this link.

Version

1.7.0

@epicfaace epicfaace added the bug label Jul 31, 2019
@epicfaace
Copy link
Member Author

Actually, the schema I tried was not valid. The correct schema should use allOf at this link -- so this issue is really about allOf support.

@epicfaace
Copy link
Member Author

Duplicate of #52.

@epicfaace epicfaace mentioned this issue Jul 31, 2019
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant