-
Notifications
You must be signed in to change notification settings - Fork 13.9k
feat(api): richer OpenAPI metadata for typed endpoints #41638
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
Open
ggazzo
wants to merge
16
commits into
develop
Choose a base branch
from
chore/api-openapi-metadata
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d991e7a
feat(api): richer OpenAPI metadata for typed endpoints
ggazzo 6709876
fix(api): point the api-docs UI at a relative spec url
ggazzo d5b0fdd
feat(api): named examples, response content types and headers
ggazzo fa1bc6c
feat(api): share the error payload schemas through components
ggazzo f3acce9
fix(api): serve the document without the success envelope
ggazzo 30598cf
feat(api): serve the document as OpenAPI 3.1
ggazzo d9d55b1
fix(api): keep the generated schemas in a single JSON Schema dialect
ggazzo c04775a
fix(api): emit nullable fields in the 3.1 spelling
ggazzo 745c953
fix(api): declare the security requirement of every operation
ggazzo ede0409
fix(api): drop the discriminator mapping from the document
ggazzo 6a02f45
fix(api): type the document response as the exception it is
ggazzo c29093e
fix(api): keep the route documentation out of the callable endpoint t…
ggazzo e331cf7
revert: omitting the documentation from the callable endpoint types
ggazzo ae7766b
fix(api): collapse the nullable unions typia writes for 3.1
ggazzo 5e75dae
fix(api): address the review of the generated document
ggazzo f5a13bb
fix(api): drop the reference to a module this branch does not have
ggazzo 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 @@ | ||
| --- | ||
| '@rocket.chat/rest-typings': patch | ||
| '@rocket.chat/meteor': patch | ||
| --- | ||
|
|
||
| Improves the generated OpenAPI document: path parameters are now templated and described, query parameters are documented one by one instead of as a single opaque object, responses always carry a description, and endpoints can declare a summary, a description, examples and a deprecation notice |
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 @@ | ||
| --- | ||
| '@rocket.chat/core-typings': patch | ||
| '@rocket.chat/meteor': patch | ||
| --- | ||
|
|
||
| Serves the OpenAPI document as 3.1, the version whose schemas are the JSON Schema dialect the endpoints already validate against | ||
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
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
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.