close
Skip to content

fix maxItems validation error message#21

Merged
aeschli merged 1 commit into
microsoft:masterfrom
sqs:fix-maxitems-msg
May 7, 2018
Merged

fix maxItems validation error message#21
aeschli merged 1 commit into
microsoft:masterfrom
sqs:fix-maxitems-msg

Conversation

@sqs

@sqs sqs commented May 7, 2018

Copy link
Copy Markdown
Contributor

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

aeschli commented May 7, 2018

Copy link
Copy Markdown
Collaborator

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