-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Generate channel type #982
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. |
Thanks for the issue @mcoevert! Somewhat related to #181 This is possible to do with a bit of custom code, by combining pre-parsing the AsyncAPI document you are able to iterate over the channels and create your own Enum MetaModel, and provide it to a generator. Maybe it would make sense to add this behavior to the AsyncAPI processor and enable it through an option such as |
(I'm a colleague of @mcoevert ) - we have for now done this ourselves in the generate script, but I do think it would make sense to have this be included... |
Definitely a good request, just gonna leave this open 🙂 @PanMan you are more than welcome to provide a PR with this, I think we could include it here:
And create a new processor option to switch it on and off 🤔 What do you think? |
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. Thank you for your patience ❤️ |
Because this IS enabled by using the core meta model as inputs, I am going ahead and close this issue. As it is unlikely we are going to enable this even further natively in Modelina. Unless someone wants to champion this. See https://modelina.org/examples?selectedExample=meta-model |
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. Thank you for your patience ❤️ |
Reason/Context
To ensure only channels allowed in the schema are being used, generating a type of available channels would be very nice.
For example:
Expected outcome:
The text was updated successfully, but these errors were encountered: