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

JSONSchema with string of arrays is not validated correctely #2750

Closed
jma opened this issue Mar 17, 2021 · 1 comment · Fixed by #3148
Closed

JSONSchema with string of arrays is not validated correctely #2750

jma opened this issue Mar 17, 2021 · 1 comment · Fixed by #3148
Labels

Comments

@jma
Copy link

jma commented Mar 17, 2021

Description
For a required array property with a minimum of string items and each string has a minimal length. An empty model should not be valid.

Minimal Reproduction
Go to:

The Submit button should not be enabled.

Your Environment

  • Angular version: X.Y.Z
  • Formly version: X.Y.Z

Additional context
Add any other context about the problem here.

@aitboudad
Copy link
Member

minLength should not ignore the empty string value in addition we need to add also type validator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants