You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue seems to be caused by a922b38. If min length validation passes, all other validation results are discarded.
The text was updated successfully, but these errors were encountered:
gsteinert
changed the title
TextType - Over-length value validates when moth max and min specified
TextType - Over-length value validates when both max and min specified
Dec 28, 2017
gsteinert
added a commit
to gsteinert/keystone
that referenced
this issue
Dec 28, 2017
Expected behavior
When both max and min are specified in a field definition, over length strings should be refused.
Actual/Current behavior
Over length string accepted
Steps to reproduce the actual/current behavior
Define a field as per below:
name: { type: Types.Text, required: true, min: 3, max: 5 },
Enter a string longer than 5 characters
Submit
Environment
Keystone master (0ca9eb1)
Node v9.2.0
Notes
Issue seems to be caused by a922b38. If min length validation passes, all other validation results are discarded.
The text was updated successfully, but these errors were encountered: