-
Notifications
You must be signed in to change notification settings - Fork 6
feat!: support 2.1.0 version of spec #41
feat!: support 2.1.0 version of spec #41
Conversation
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.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. 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.
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.
just 2 things
.eslintrc
Outdated
|
||
overrides: | ||
- files: "**/*.test.js" |
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.
maybe this has an error, try this https://github.com/asyncapi/generator/blob/b071cebe39beb50806cb2872e1256e7b7a328565/test/renderer.test.js#L1
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.
Nope 😞 Still 36% of duplication...
ok, last try, try again in esconfig but explicitly link to the test file that causes errors please |
you have some errors ineslint config file and pr testing is failing |
👏🏼 you decided to actually refactor rather than silet the rule, bravo 👏🏼 |
@derberg Yep, but current tests with this helper function aren't readable as were. |
I think https://github.com/asyncapi/modelina/blob/676726ac6385afbd901a5ebc0c5ad0c2a1064499/sonar-project.properties should do the trick, I just reminded myself about it that Jonas asked me for the same some day and this is how we fixed it |
I also had |
but with full filepath like jonas? |
@derberg Yes. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
🎉 This PR is included in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
getPayloadExamples
andgetHeadersExamples
functions to support thename
andsummary
fields from item ofmessage.examples
Related issue(s)
Part of asyncapi/spec#536