-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate modelina to generate models #129
Comments
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. |
@jonaslagoni like the idea! How will it know which file to use? |
Without knowing any depth of the implementation from a CLI side of things, I assumed you would use the context? Or would it need to use something like |
Also, one point to consider, since Modelina, don't only support AsyncAPI documents as inputs, I guess through the CLI it should be possible to provide other input types as well, or?🤔 |
I'm not sure, where do the boundaries start and stop. Given it's the |
Yea, I agree. Lets just focus on AsyncAPI files and see where it goes 👍 |
are you sure about shouldn't it be |
Can you elaborate on how you see the difference between the generator and Modelina? Do you mean in terms of generation we could do this: |
except of Have a look at #143 and another use case for |
how about (especially looking at the PR mentioned above by @fmvilas that relates to @arjungarg07 work):
thoughts? who cares about the dependencies, in which command what tool is used, cupid or modelina? we would only need to leave the gate open for folks with custom templates 🤔
|
I think that makes sense! Even if we change it later it should not be a problem, we just need to start with something that makes sense 😄 |
Solution that we should consider for that issue asyncapi/community#249 It's only an idea so please treat it as suggestion, not final approach. Feel free to comment :) |
I'm happy to be a mentor for this issue in the Mentorship program. |
@fmvilas I'm also interested to contribute to this issue for the Mentorship program, but I'm not sure whether I can opt for different issues or not 🤔 In case it's only possible to opt for just one issue, I wouldn't mind to pick one or the other depending on the priority or importance of the issue for AsyncAPI, I can adapt to it :) (The other issue I'm talking about is #184) |
Oh sorry, I haven't seen it. Removing the label then. |
Alright, you can ignore my previous comment then :) |
🎉 This issue has been resolved in version 0.21.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Reason/Context
Sometimes you just want to generate the data models for the payloads in your AsyncAPI file, therefore I would like to integrate Modelina with the CLI, so we can offer an easy way for users to generate them.
Description
As a start, I would like to integrate it with no customization, at least for now, so you can only select the output language and nothing more.
But which format of commands is best fitting?
I think something like the following should be fine:
asyncapi generate models --language=ts
The text was updated successfully, but these errors were encountered: