-
-
Notifications
You must be signed in to change notification settings - Fork 98
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 spec 3.0 validation support #747
Conversation
🦋 Changeset detectedLatest commit: 77f368b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for modest-rosalind-098b67 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for asyncapi-studio-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Have been playing around with changes in this PR and the conversion pop-up behaviour seems odd:
- when the
support v3
toggle is on, and I am editing a v3 document, and I selectnew File
it goes black to normal settings and v2. I expect it to show me a window if I want to convert the example to v3. - When I am editing a v2 document and I turn the
support v3
toggle on, nothing happens. I expect the conversion pop-up to show up.
@KhudaDad414 what do you mean by "it goes back to normal settings" ? the The normal behaviour of the conversion window that shows during edition is the following :
Fixed in my last commits |
@smoya the validation works with the last Parser-JS update. IMO it's already useful for doc contributors and can be merged. This is a loom demonstrating how it works: cc @alequetzalli @derberg @jonaslagoni |
Clarifying it works because Studio runs an additional JSON Schema validation through the |
@Amzani I love seeing how this is starting to look! 🙌 |
@smoya I think we could just have an other setting to enable/disable the spectral validation of v3 documents. |
@smoya I've just disabled the governance tab for v3.0.0 for now, we can enable it once asyncapi/parser-js#825 (comment) is fixed. |
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.
LGTM
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
/rtm |
Fixes #746
@asyncapi/specs
version from4.2.1
to6.0.0-next-major-spec.2
including adapting to breaking changesWhen editing a V3 Async API document
2.x.x to 3.0.0 Conversion
Still need to figure out
Any ideas folks ?