-
Notifications
You must be signed in to change notification settings - Fork 139
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
Updated asyncapi v2 typings to conform to JSON Schema draft-07 #1608
Conversation
🦋 Changeset detectedLatest commit: cd4c5ba The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
0c7d0b7
to
019ba1a
Compare
@jeremyfiel could you re-arrange the properties back just to see what's been changed? |
019ba1a
to
ed4976b
Compare
951f9fb
to
a87290e
Compare
b02db39
to
8fe4023
Compare
…hema draft-07 related Redocly#1219
8fe4023
to
cd4c5ba
Compare
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.
Thank you for the contribution @jeremyfiel!
Refactors the v2 typings ONLY.
Per the specification, AsyncAPI v2 supports a superset of JSON Schema draft-07.
related Redocly/redoc#1219
What/Why/How?
The types defined in asyncapi.ts were copied from oas3_1 types but AsyncAPI does not support JSON Schema 2020-12, thus, many of the typings were invalid for proper validation and linting.
Reference
https://github.com/asyncapi/spec/blob/master/spec/asyncapi.md#schema-object
the list defined in their docs does not represent the terminology they have used. The list is copied from their earlier version specification documents and only minor updates were made. They indicate any JSON Schema core or validation keywords are supported from draft-07, so those updates were integrated here.
Testing
Screenshots (optional)
Check yourself
Security