Skip to content

fix maxItems validation error message #21

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

Merged
merged 1 commit into from
May 7, 2018

Conversation

sqs
Copy link
Contributor

@sqs sqs commented May 7, 2018

The message refers to the minItems value (incorrect), not the maxItems value (correct).

This leads to incorrect validation error messages when using maxItems, such as in the example below (which can occur with maxItems is not 0):

Array has too many items. Expected 0 or fewer.

The message refers to the `minItems` value (incorrect), not the `maxItems` value (correct).

This leads to incorrect validation error messages when using maxItems, such as in the example below (which can occur with `maxItems` is not 0):

> Array has too many items. Expected 0 or fewer.
@aeschli aeschli merged commit a659361 into microsoft:master May 7, 2018
@aeschli
Copy link
Collaborator

aeschli commented May 7, 2018

Thanks @sqs !

@aeschli aeschli added this to the May 2018 milestone May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants