-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[REQ] Support for extra annotations on path parameters #18224
Labels
Comments
for Spring, it can be implemented with a custom beanValidationQueryParams.mustache
and a custom beanValidationPathParams.mustache
It would be nice to include that feature in the default templates |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem?
I utilize annotations to validate payloads for DTOs, like so:
This allows for me to validate the incoming DTOs across my projects, reusing the annotations in combination with the vendor extension.
I want to be able to do something similar for path parameters, with the Spring generator
Describe the solution you'd like
I would like to be able to utilize the vendor-extension pattern for my path parameters, to be able to validate path parameters in a similar fashion as I do with my DTOs.
would generate:
Describe alternatives you've considered
I looked into this issue: #16054 which comes quite close to what I want, but it does unfortunately not cover my use case.
Updating the template on my end is obviously one way to go, but I believe that others might find this functionality of value.
Additional context
I am not sure if this is an apropriate feature request as I find the x-vendor-extensions quite flexible, as it opens up a lot of possibilities. If this is considered to be a good feature request, then it might be possible to add the functionality to the query parameters as well.
The text was updated successfully, but these errors were encountered: