-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
feat: add a traverse schema function #198
Conversation
@jonaslagoni awesome you picked it up. Let me know once you are ready for some hands on, I'd like to test it on the template for templates, and basically remove https://github.com/asyncapi/template-for-generator-templates/blob/main/filters/mermaidDiagram.js#L75-L177 |
Hmm, this is not as straight forward as I first assumed since it is implemented with |
@jonaslagoni oh yes, I think some refactor might be needed, not trivial one, this is why I've put it here and didn't work on it immediately |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! I only have a suggestion to change cb
name to more verbose callback
:)
@jonaslagoni I'll give it a try in template for templates. I'll keep ya posted |
so far I'm running it locally without introduction any changes to template, like this:
I get this error: tl;dr property of type string, inside object, doesn't get anonymousId assigned
Of cource when I try the same with latest generator, all is good. Something is wrong here https://github.com/asyncapi/template-for-generator-templates/blob/main/filters/mermaidDiagram.js#L13. There is a moment when I hope this helps. I did not check where exactly is the problem on your side but this investigation should make it easier to find |
Found the issue, creating some tests and then pushing the change. |
@derberg done. Tried testing it with your document and it seems to work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now this is what I call a good feature - when by using it I add just one line and remove 108 -> https://github.com/asyncapi/template-for-generator-templates/pull/5/files 👏
I only shared my concerns about jsdocs, that there is one small error I think, and that those special types you added are not represented in jsdoc
@derberg sorry for requesting review before fixing the lint errors. It is ready now 😄 |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work man!
Let us not merge yet, I want to first fix the issue with twitter action to not tweet again that it this feature was done by the bot 😄
I'll work on it today
@jonaslagoni I'm almost done with #208, one repo left to get pr testing there with mandatory option. I want to merge it first too because we will be able to test with your feature how the automated bump works 😄 |
Sounds good 👍 |
🎉 This PR is included in version 1.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* master: (24 commits) chore: Refactored code location for iterators (asyncapi#225) chore(release): 1.3.1 (asyncapi#222) fix: apply traits to standalone messages from components section (asyncapi#214) test: improve feedback loop from browser tests (asyncapi#216) ci: fix the space-issue in bump workflow (asyncapi#218) ci: update global workflows (asyncapi#217) chore(deps): bump ini from 1.3.5 to 1.3.7 (asyncapi#215) ci: rename pr testing job name and test node 14 (asyncapi#213) ci: bump workflow to start on push instead of release (asyncapi#212) chore(release): 1.3.0 (asyncapi#211) feat: add a traverse schema function (asyncapi#198) ci: add workflow that bumps parser in other asyncapi repos (asyncapi#208) ci: fix release workflow step that is responsible for handling twitter (asyncapi#209) ci: update global workflows (asyncapi#206) ci: disable any testing on draft PR (asyncapi#204) chore(release): 1.2.0 (asyncapi#202) feat: extend the components and asyncapi model with has-like functions (asyncapi#192) chore(deps-dev): bump semantic-release from 17.0.6 to 17.2.3 (asyncapi#199) chore(release): 1.1.1 (asyncapi#197) fix: channels with name '/' fail on validation (asyncapi#196) ...
Description
The PR contains the following updates
Related issue(s)
Fixes #166