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

Implement validation for types #157

Open
karencfv opened this issue Dec 3, 2023 · 0 comments
Open

Implement validation for types #157

karencfv opened this issue Dec 3, 2023 · 0 comments

Comments

@karencfv
Copy link
Collaborator

karencfv commented Dec 3, 2023

We would like to perform validation on types before an API call is made.

For example: Check the Name type is valid against the restrictions stated in the OpenAPI spec

"Name": {
  "title": "A name unique within the parent collection",
  "description": "Names must begin with a lower case ASCII letter, be composed exclusively of lowercase ASCII, uppercase ASCII, numbers, and '-', and may not end with a '-'. Names cannot be a UUID though they may contain a UUID.",
  "type": "string",
  "pattern": "^(?![0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)^[a-z][a-z0-9-]*[a-zA-Z0-9]*$",
  "minLength": 1,
   "maxLength": 63
},
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

1 participant