-
-
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
Improve the code generator functions #1338
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. |
I specifically took the example of csharp because it has a lot of options and i've worked on adding a couple of them. |
@jonaslagoni Please let me know if this is a bad idea 🙂 |
#1309 actually clean up a lot of the duplicate code and structure. Generally, this code never changes so adding a new library just to replace 20 lines of code that rarely changes, does not seem that relevant IMO 🙂 But it's also hard to see the full extent that it would simplify, so feel free to create a draft PR proposing the change if you feel it's a needed change 👍 |
@jonaslagoni Gained some knowledge by reading the code changes. I'll brainstorm again, i'm thinking if it's a neccessary change or not 🤔 Also, I'll probably open another issue, regarding adding the imports in Code generator, they're missing right there. |
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 ❤️ |
Closing as no further followup and it seemed to have already been fixed 🙂 |
Reason/Context
The current code generators we have under
https://github.com/asyncapi/modelina/tree/master/modelina-website/src/helpers/GeneratorCode are working based on template literals, they donot update the imports of presets, using regular expressions to replace new lines, joining presets using ',' and performing logics based on length of presets array IMHO is degrading the quality and understandability of the code (although it's very readable).
Description
Please try answering few of those questions
In place of this, we could have better code looking like this
The text was updated successfully, but these errors were encountered: