asyncapi / modelina

A library for generating typed models based on inputs such as AsyncAPI, OpenAPI, and JSON Schema documents with high customization
https://modelina.org
Apache License 2.0
279 stars 165 forks source link

[DART] We need a flag to generate models with json annotation #2040

Open Driky opened 4 months ago

Driky commented 4 months ago

Reason/Context

Why we need this improvement?

A very common use-case when generating model is the serialization/deserialization to/from json. Currently this is not covered by the cli even tough modelina supports it.

How will this change help?

With this change we save time on several points:

Description

What changes have to be introduced?

From a quick look at src/commands/generate/models.ts:

Will this be a breaking change?

No, this would add an optional flag. Old script would still work.

How could it be implemented/designed?

See example mentioned previously

github-actions[bot] commented 4 months ago

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] commented 2 weeks ago

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:

jonaslagoni commented 2 weeks ago

@derberg do you mind transferring this to Modelina 🙂

github-actions[bot] commented 2 weeks ago

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.