-
Notifications
You must be signed in to change notification settings - Fork 211
feat: introduce basic OAS3.2 support #2335
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
76f9325
feat: introduce basic OAS3.2 support
tatomyr 510b7ca
add new http methods
tatomyr 5d0f059
add self to the root
tatomyr 1e6f77f
add new meidatype keywords
tatomyr 7c4155e
add servers
tatomyr 419e07a
add security
tatomyr 1b6aea3
add querystring
tatomyr c94e353
add example keywords
tatomyr 6a49852
add response summary and remove redundant exports
tatomyr 128b038
add defaultMaping to discriminator
tatomyr 389b83f
added device authorization flow; added tests
tatomyr 61ef684
Update CONTRIBUTING.md
JLekawa 089c8b7
fix collectWebhooks; update tests and docs
tatomyr 8d94760
Update packages/core/src/types/oas3_2.ts
tatomyr 2ee6937
fix a comma
tatomyr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| "@redocly/openapi-core": minor | ||
| "@redocly/cli": minor | ||
| --- | ||
|
|
||
| Added basic support for **OpenAPI 3.2** specification. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
__tests__/check-config/wrong-config-type-extensions-in-assertions/snapshot.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| openapi: 3.2.0 | ||
| info: | ||
| title: Test2 | ||
| version: v2 | ||
| tags: | ||
| - name: successfully | ||
| - name: books | ||
| summary: Books & Literature | ||
| description: Book catalog and recommendations | ||
| parent: products | ||
| kind: nav | ||
| paths: | ||
| /products: | ||
| additionalOperations: | ||
| test: | ||
| summary: Additional op test | ||
| wrong: Should catch wrong fields in additionalOperations! | ||
| query: | ||
| summary: Advanced product search | ||
| wrong: Should catch wrong fields in the QUERY method! | ||
| requestBody: | ||
| required: true | ||
| content: | ||
| application/json: | ||
| schema: | ||
| type: object | ||
| properties: | ||
| filter: | ||
| type: object | ||
| sort: | ||
| type: array | ||
| items: | ||
| type: string | ||
| components: | ||
| securitySchemes: | ||
| api_key: | ||
| type: apiKey | ||
| in: header | ||
| name: X-API-Key | ||
| deprecated: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| openapi: 3.2.0 | ||
| info: | ||
| title: Test | ||
| version: v1 | ||
| security: [] | ||
| servers: | ||
| - name: Should allow name | ||
| url: http://localhost | ||
| wrong: Should catch wrong fields in servers! | ||
| $self: Should pass | ||
| tags: | ||
| - name: cds | ||
| summary: Music CDs | ||
| description: Music CD catalog and reviews | ||
| parent: products | ||
| kind: nav | ||
|
|
||
| - name: giftcards | ||
| summary: Gift Cards | ||
| description: Digital and physical gift cards | ||
| parent: products | ||
| kind: nav | ||
|
|
||
| - name: digital-delivery | ||
| summary: Digital Delivery | ||
| description: Instantly delivered digital products | ||
| kind: badge | ||
|
|
||
| paths: | ||
| /products: | ||
| get: | ||
| tags: | ||
| - giftcards | ||
| - digital-delivery | ||
| summary: List available gift cards | ||
| responses: | ||
| '200': | ||
| description: Search results | ||
| /stream: | ||
| get: | ||
| summary: Stream | ||
| responses: | ||
| 200: | ||
| description: Stream of updates | ||
| content: | ||
| text/event-stream: | ||
| itemSchema: # Should allow itemSchema | ||
| type: object | ||
| properties: | ||
| id: { type: string } | ||
| data: { type: object } | ||
| /thing: | ||
| get: | ||
| summary: a sample api | ||
| responses: | ||
| '200': | ||
| description: OK | ||
| content: | ||
| multipart/mixed: | ||
| itemSchema: # Should allow itemSchema | ||
| $comment: A single data image from the device | ||
| itemEncoding: # Should allow itemEncoding | ||
| contentType: image/jpg | ||
| /querystring: | ||
| parameters: | ||
| - in: querystring | ||
| name: querystring_test | ||
| content: | ||
| application/x-www-form-urlencoded: | ||
| schema: | ||
| type: object | ||
| properties: | ||
| foo: | ||
| type: string | ||
| bar: | ||
| type: boolean | ||
| examples: | ||
| spacesAndPluses: | ||
| description: Note handling of spaces and "+" per media type. | ||
| dataValue: | ||
| foo: a + b | ||
| bar: true | ||
| serializedValue: foo=a+%2B+b&bar=true | ||
| examples: | ||
| spacesAndPluses: | ||
| description: | | ||
| Note that no additional percent encoding is done, as this | ||
| media type is URI query string-ready by definition. | ||
| dataValue: | ||
| foo: a + b | ||
| bar: true | ||
| serializedValue: foo=a+%2B+b&bar=true | ||
| components: | ||
| securitySchemes: | ||
| petstore_auth: | ||
| type: oauth2 | ||
| deprecated: true # Should allow deprecation | ||
| oauth2MetadataUrl: http://localhost # Should be allowed | ||
| flows: | ||
| implicit: | ||
| authorizationUrl: https://example.org/api/oauth/dialog | ||
| wrong: Should catch wrong prop in oauth2 flows! | ||
| scopes: | ||
| write:pets: modify pets in your account | ||
| read:pets: read your pets |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.