cli icon indicating copy to clipboard operation
cli copied to clipboard

[FEATURE] Possibility to pass render config to Modelina

Open birnbuazn opened this issue 6 months ago • 3 comments

Why do we need this improvement?

Modelina would supports a host of different options to tweak the generated models. We for instance need Enum values to be generated in CamelCase instead of the default UPPER_CASE.

Unfortunately, using asyncapi generate models kotlin does not allow to specify any of this config options apart from the package name, making the CLI too rigid.

How will this change help?

Being able to tweak the generated models allows for greater flexibility.

Screenshots

No response

How could it be implemented/designed?

I would like to pass on all possible flags when generating the model classes like for instance

asyncapi generate models kotlin --enumKeyNamingFormat=camel_case ...

🚧 Breaking changes

No

👀 Have you checked for similar open issues?

  • [x] I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue?

None

birnbuazn avatar May 05 '25 17:05 birnbuazn

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.

github-actions[bot] avatar May 05 '25 17:05 github-actions[bot]

Hey @Souvikns could you also have a look at this as i believe that this is also something required to be modified in modelina and not only on cli side.

neoandmatrix avatar May 31 '25 18:05 neoandmatrix

@Souvikns we can transfer this issue to modelina thanks : )

AayushSaini101 avatar Jun 03 '25 10:06 AayushSaini101

/ti modelina

Souvikns avatar Jul 17 '25 05:07 Souvikns

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

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.

Thank you for your patience :heart:

github-actions[bot] avatar Nov 15 '25 00:11 github-actions[bot]