You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I fear there is currently no way to add additional annotations except skipping the generated type.
I'm fine with adding it. It will add a bit of flexibility.
It is just a matter of choosing the right path ;-)
The simple path will only allow custom annotations in context of bean validations. The bean validation code already handles annotations so it would be "just" a matter of providing the info to it (with something like your suggestion above).
More complex one would allow custom annotations independent of bean validation. More flexibility, but I'm not sure it is worth implementing. It would have bean nice maybe once or twice. ;-)
I'm not feeling that I'm in a position to decide on the right path =)
but "the simple path" seems more preferable to me from the pragmatical perspective: as I understand it's simpler to implement and covers specific and very typical problem (in contrast to rare and imaginary ones).
Activity
hauner commentedon Jul 28, 2022
I fear there is currently no way to add additional annotations except skipping the generated type.
I'm fine with adding it. It will add a bit of flexibility.
It is just a matter of choosing the right path ;-)
The simple path will only allow custom annotations in context of bean validations. The bean validation code already handles annotations so it would be "just" a matter of providing the info to it (with something like your suggestion above).
More complex one would allow custom annotations independent of bean validation. More flexibility, but I'm not sure it is worth implementing. It would have bean nice maybe once or twice. ;-)
toronik commentedon Jul 29, 2022
I'm not feeling that I'm in a position to decide on the right path =)
but "the simple path" seems more preferable to me from the pragmatical perspective: as I understand it's simpler to implement and covers specific and very typical problem (in contrast to rare and imaginary ones).
hauner commentedon Jul 29, 2022
Was more a question to myself ;-)
.. but you are right. I prefer the first path too :-)
openapi-processor/openapi-processor-spring#143, read annotation mapping
openapi-processor/openapi-processor-spring#143, write additional anno…
openapi-processor/openapi-processor-spring#143, write additional anno…
#143, updated documentation
hauner commentedon Sep 7, 2022
have something running, somehow went for the more general approach. :-)
the mapping looks like this:
Foois the OpenAPI object, and the mapping will add@Sumto aFooparameter of an endpoint method:I think, I will add the following variation
to add the annotation to the generated
Fooclass:openapi-processor/openapi-processor-spring#143, write additional anno…
openapi-processor/openapi-processor-spring#143, add sample
#143, updated documentation
#143, updated documentation
#143, updated documentation
#143, updated documentation
openapi-processor/openapi-processor-spring#143, new mapping schema