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 pattern definition rules #147

Open
arey opened this issue Aug 26, 2024 · 0 comments
Open

Add pattern definition rules #147

arey opened this issue Aug 26, 2024 · 0 comments

Comments

@arey
Copy link
Member

arey commented Aug 26, 2024

This development follows on from the Pull Request spring-petclinic/spring-petclinic-angular#142 from @Holger-Mayer. I quote:

An anomaly is defined within the openAPI validation.
We define some fields with a minimal length but we do not have a pattern validation rule defined. This enables the user of the api to define i.e. names with all blank characters. Here in the future, the openApi description should define pattern validation rules.
In the meantime, it is assumed, that any required name field with a length > 0 may not start with a character other than [A-za-z]. This is implemented in this pull request.

We could add some validation rules similar to the spring-petclinic-angular. Before starting this issue, we have to list them here.

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

4 participants
@arey and others