Skip to content

refactor: add needed mixins - #491

Merged
asyncapi-bot merged 2 commits into
asyncapi:next-majorfrom
magicmatatjahu:next/common-models
Mar 16, 2022
Merged

asyncapi-bot merged 2 commits into
asyncapi:next-majorfrom
magicmatatjahu:next/common-models

Conversation

@magicmatatjahu

Copy link
Copy Markdown
Member

Description

  • add mixins for tags, description, bindings, externalDocs and specification extensions
  • add needed functionality to extend models by mixins
  • add unit tests for mixins and create helpers to check inheritance of mixins

Related issue(s)
Part of #481
Part of #482

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@magicmatatjahu

magicmatatjahu commented Mar 15, 2022 •

Copy link
Copy Markdown
Member Author

@jonaslagoni Thanks! However I added to the tags and bindings the bindings, bindings(protocol: name) etc. methods that we don't have in the parser-api spec. @smoya @jonaslagoni please check out this, because if everyone agree that new methods are better we should change parser-api. Also we should have in mind that tags and bindings could change in the next major version so probably we should have mixins only for particular major version. WDYT?

@smoya

smoya commented Mar 15, 2022

Copy link
Copy Markdown
Member

@magicmatatjahu I think the methods you added make totally sense.
Do not worry about updating parser-api right now. We are not keeping up with it during this development as we are designing and implementing at the same time in order to detect issues earlier. That means we will do a massive update into the parser-api API once we can validate the implementation makes sense.

@smoya smoya left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@magicmatatjahu

Copy link
Copy Markdown
Member Author

/rtm

@asyncapi-bot
asyncapi-bot merged commit f1989d6 into asyncapi:next-major Mar 16, 2022
@magicmatatjahu
magicmatatjahu deleted the next/common-models branch March 16, 2022 09:49
magicmatatjahu added a commit to magicmatatjahu/parser-js that referenced this pull request Oct 3, 2022
derberg pushed a commit that referenced this pull request Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ready-to-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants