Skip to content

refactor: add info and dependant models - #485

Merged
asyncapi-bot merged 5 commits into
asyncapi:next-majorfrom
smoya:feat/models
Mar 9, 2022
Merged

asyncapi-bot merged 5 commits into
asyncapi:next-majorfrom
smoya:feat/models

Conversation

@smoya

@smoya smoya commented Mar 8, 2022

Copy link
Copy Markdown
Member

Description

This PR adds Info and the dependant models (Contact, License). It also allows to retrieve Info from the document root.
The models are based on the new Intent API (even though Info looks the same by now).

Pending things that can be out of this PR:

  • How to handle retrocompatibility.

Related issue(s)
#482

Comment thread src/models/asyncapi.ts Resolved
Comment thread src/models/info.ts Resolved
@magicmatatjahu

Copy link
Copy Markdown
Member

@smoya I know that it's feature, but I prefer to add chore or refactor to not trigger release. In the react-component any feat or fix triggers release and we will publish first prerelease of 2.0.0 probably in next 2-3 months, so...

@derberg Maybe you wanna add something how we should annotate PRs for next-major.

smoya and others added 2 commits March 9, 2022 11:06
Co-authored-by: Maciej Urbańczyk <[email protected]>
Co-authored-by: Maciej Urbańczyk <[email protected]>
@derberg

derberg commented Mar 9, 2022

Copy link
Copy Markdown
Member

@magicmatatjahu sorry I didn't get it why it can't be released as release candidate? what react component has to do here?

@smoya
smoya requested a review from magicmatatjahu March 9, 2022 10:22
@magicmatatjahu

Copy link
Copy Markdown
Member

@derberg due to the fact that in react component the first dozen of PRs were not released because the component itself did not work. Each PR was a new component rewritten to make PR easier. It is the same here. So the first PRs on next-major should not be released, because nothing works yet and it will work maybe in 2 weeks or a month. Of course I wanna release next-major as prerelease but not now.

@derberg

derberg commented Mar 9, 2022

Copy link
Copy Markdown
Member

@magicmatatjahu oh, ok, now it makes sense. I did not review this PR so was not aware what is the status. I totally agree that every release should include "working code", same with prereleases, something that can actually be used and integrated

@magicmatatjahu

Copy link
Copy Markdown
Member

@derberg No worries :)

@smoya So I suggest to use refactor for first PRs, ok?

@smoya smoya changed the title feat: add info and dependant models refactor: add info and dependant models Mar 9, 2022
@sonarqubecloud

sonarqubecloud Bot commented Mar 9, 2022

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 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

@smoya

smoya commented Mar 9, 2022

Copy link
Copy Markdown
Member Author

/rtm

@asyncapi-bot
asyncapi-bot merged commit d3d0a3e into asyncapi:next-major Mar 9, 2022
@smoya
smoya deleted the feat/models branch March 9, 2022 15:05
magicmatatjahu pushed 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants