Skip to content
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

Add OpenAPIRenderer and generate_schema management command. #6229

Merged
merged 8 commits into from Oct 3, 2018

Conversation

tomchristie
Copy link
Member

@tomchristie tomchristie commented Oct 3, 2018

This is a low footprint refinement of #6119.

Closes #5839.

Adds OpenAPIRenderer and JSONOpenAPIRenderer.
Add the generate_schema management command.

TODO:

  • Add flag options to the management command.
  • Document the management command.
  • Document the renderer classes, and switching to OpenAPI.

@encode encode deleted a comment from codecov-io Oct 3, 2018
@tomchristie tomchristie merged commit 8908934 into master Oct 3, 2018
2 checks passed
@tomchristie tomchristie deleted the add-openapi-support branch Oct 3, 2018
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
…de#6229)

* Add OpenAPIRenderer and generate_schema command

* Add both OpenAPIRenderer and JSONOpenAPIRenderer

* Add flags to generate_schema command

* Fix syntax error

* Pull coreschema references into method, so they are only used if 'OpenAPIRenderer' is in use.

* generate_schema -> generateschema, and fix to OpenAPIRenderer

* Ensure that renderers generate bytes and generateschema outputs text

* Drop unused import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant