[FEATURE] [Java] Add "additionalModelTypeAnnotations" to enable using Lombok #2085
Open
2 tasks done
Labels
enhancement
New feature or request
Why do we need this improvement?
In our project we use lombok, specifically @lombok.Builder for models. The openapi-generator for spring has an option to set Annotations for model classes ("additionalModelTypeAnnotations"). [1]
It would be helpful to have such an opportunity for async api model generation as well.
[1] https://openapi-generator.tech/docs/generators/spring/
How will this change help?
With this featuer we would be able to use Lombok consistently.
Screenshots
No response
How could it be implemented/designed?
A parameter could be added ("javaClassAnnotations" would be a better name in the context of this project) that takes a String which is copied into every java class just in front of the line "public class...".
Default should be an empty string which makes it backwards-compatible.
🚧 Breaking changes
No
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue?
Yes I am willing to submit a PR, but as I don't have a lot of time, feel free to work on it!
The text was updated successfully, but these errors were encountered: