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

Schema: show type string with minLength 1 as "non-empty" #192

Closed
dolmen opened this issue Feb 1, 2017 · 0 comments
Closed

Schema: show type string with minLength 1 as "non-empty" #192

dolmen opened this issue Feb 1, 2017 · 0 comments

Comments

@dolmen
Copy link

dolmen commented Feb 1, 2017

With the following schema definition:

name:
    type: string
    description: Name of the resource
    minLength: 1

The current rendering says: « >=1 characters »

It would be better for human consumption to specialize the case where minLength is 1 and maxLength is not set to show instead « non-empty ».

@dolmen dolmen changed the title Schema: show type: string with minLength: 1 as "non-empty" Schema: show type string with minLength 1 as "non-empty" Feb 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants