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
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.
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.
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.
There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.
Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.
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: