Add support validation annotations extensions.#1789
Add support validation annotations extensions.#1789altro3 merged 1 commit intomicronaut-projects:6.13.xfrom
Conversation
d661d9c to
a10a871
Compare
sdelamo
left a comment
There was a problem hiding this comment.
Are are these extensions documented anywhere x-pattern-message, x-size-message, x-not-null-message, x-min-message, x-max-message ? Is this something we are inventing for Micronaut OpenAPI or is it coming from a specification?
|
can you merge 6.13.x ? |
|
This satisfies the specification because these are extensions. The openapiGenerator core does not support these extensions, but for example x-pattern-message is supported by the spring generator: https://openapi-generator.tech/docs/generators/spring/
We are not obliged to support certain extensions, but we also have the right to create new extensions. I added the rest of the extensions in connection with this PR: OpenAPITools/openapi-generator#19630 In general, all these extensions are needed exclusively for more correct code generation. Support for new extensions does not affect the work of current users in any way, it simply adds the ability for them to describe the openapi specification so that the generated code is more accurate |
2ec555c to
f778e97
Compare
sdelamo
left a comment
There was a problem hiding this comment.
Are these extensions defined or explained in our documentation? If not can you document, what we support?
|
Unfortunately, I don't have time to write full documentation yet. You see, at the moment we don't have any documentation for the generator at ALL. Therefore, we need to write it not only about these extensions, but about the entire generator as a whole. Therefore, I suggest not to bother with describing the generator features for now. I mean, specifically in these PRs, but in the future it will be time to write documentation for the generator. I was going to do this, but I haven't found the time yet |
|
Please resolve the conflicts |
8dffba7 to
5022b81
Compare
5022b81 to
ec0feaa
Compare

Add processing custom messages to jakarta validation annotations with extensions:
x-pattern-messagex-size-messagex-not-null-messagex-min-messagex-max-message