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

add validation for string type: uuid #151

Closed
GavinChenYan opened this issue May 27, 2019 · 2 comments
Closed

add validation for string type: uuid #151

GavinChenYan opened this issue May 27, 2019 · 2 comments
Assignees

Comments

@GavinChenYan
Copy link
Contributor

schema:
type:string
minLength: 1
format: uuid

we need add new format validation for uuid format string

@GavinChenYan GavinChenYan self-assigned this May 27, 2019
@stevehu
Copy link
Contributor

stevehu commented May 27, 2019

GavinChenYan added a commit that referenced this issue May 28, 2019
@GavinChenYan
Copy link
Contributor Author

user can use pattern to define the uuid format. But since uuid is validate format for openAPI. We should have validation for it. Added separate validator for it

stevehu added a commit that referenced this issue May 28, 2019
@stevehu stevehu closed this as completed May 30, 2019
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

No branches or pull requests

2 participants