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

Array/enum of allowed strings/values #1024

Closed
afwn90cj93201nixr2e1re opened this issue Jun 17, 2019 · 1 comment
Closed

Array/enum of allowed strings/values #1024

afwn90cj93201nixr2e1re opened this issue Jun 17, 2019 · 1 comment
Labels

Comments

@afwn90cj93201nixr2e1re
Copy link

How i can make it?
for example:
type array
allowedStrings:['abcd','efgh','123','check','it','out'].
minElements: 1
Data:
['abcd','123'] -> valid
['abcd','kekc'] -> invalid
['abcd',123] -> invalid
[] -> invalid

@epoberezkin
Copy link
Member

Use "enum" - see JSON Schema documentation or KEYWORDS.md

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

No branches or pull requests

2 participants