-
Notifications
You must be signed in to change notification settings - Fork 300
OAS 3.0 schema generation #772
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
16 commits
Select commit
Hold shift + click to select a range
9efea6a
initial implementation of OAS 3.0 generateschema
n2ygk e715638
my security schemes PR didn't make it into DRF 3.12
n2ygk 28be828
remove fields deepObject placeholder
n2ygk de2bece
make it clear this is an initial openapi release
n2ygk 8273f48
getattr for improved readability
n2ygk ae223d4
remove security objects until upstream https://github.com/encode/djan…
n2ygk abd9c51
no need for duplicated snapshots exclusion
n2ygk 61c27e0
DRF 3.12 is now the minimum
n2ygk c8ea923
use pytest style: remove superfluous TestBase
n2ygk 5594691
copy() not necessary
n2ygk 0ea816e
simplify relationships paths
n2ygk 71777da
Revert "simplify relationships paths"
n2ygk 7a6a088
documentation corrections for openapi
n2ygk 407e119
rename mutable private methods and improve their docstrings
n2ygk bb905bf
Fix RelationshipView.
n2ygk af5f4ea
Merge branch 'master' into openapi_schema
sliverc 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 |
---|---|---|
|
@@ -14,6 +14,7 @@ Jason Housley <[email protected]> | |
Jerel Unruh <[email protected]> | ||
Jonathan Senecal <[email protected]> | ||
Joseba Mendivil <[email protected]> | ||
Kieran Evans <[email protected]> | ||
Léo S. <[email protected]> | ||
Luc Cary <[email protected]> | ||
Matt Layman <https://www.mattlayman.com> | ||
|
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
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,28 @@ | ||
<!DOCTYPE html> | ||
n2ygk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<html> | ||
<head> | ||
<title>Swagger</title> | ||
<meta charset="utf-8"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" type="text/css" href="//unpkg.com/swagger-ui-dist@3/swagger-ui.css" /> | ||
</head> | ||
<body> | ||
<div id="swagger-ui"></div> | ||
<script src="//unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js"></script> | ||
<script> | ||
const ui = SwaggerUIBundle({ | ||
url: "{% url schema_url %}", | ||
dom_id: '#swagger-ui', | ||
presets: [ | ||
SwaggerUIBundle.presets.apis, | ||
SwaggerUIBundle.SwaggerUIStandalonePreset | ||
], | ||
layout: "BaseLayout", | ||
requestInterceptor: (request) => { | ||
request.headers['X-CSRFToken'] = "{{ csrf_token }}" | ||
return request; | ||
} | ||
}) | ||
</script> | ||
</body> | ||
</html> |
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.