cli icon indicating copy to clipboard operation
cli copied to clipboard

[FEATURE] Add support to change the collection type for arrays in Java models

Open borrull opened this issue 1 year ago • 2 comments
trafficstars

Why do we need this improvement?

In Modelina we can change the default collection type from array to List in Java. The CLI should allow the same.

How will this change help?

It will allow to generate Java models that implement collections as either arrays or Lists, depending on the configuration.

Screenshots

No response

How could it be implemented/designed?

Similarly as how the same issue for C# https://github.com/asyncapi/cli/issues/469 was implemented via https://github.com/asyncapi/cli/pull/481, by introducing a new parameter javaArrayType with the possible values being Array (default) and List

🚧 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?

Yes I am willing to submit a PR!

borrull avatar May 20 '24 06:05 borrull