Skip to content

Add DEFAULT_SCHEMA_CLASS setting #5658

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

Conversation

carltongibson
Copy link
Collaborator

@carltongibson carltongibson commented Dec 5, 2017

We're encouraging people to subclass AutoSchema to customise schema generation. This PR adds a setting to allow users to specify a default class to use for APIView.schema.

This is similar to the settings for the other APIView attributes.

@carltongibson carltongibson force-pushed the 374/add-view-inspector-class-setting branch 2 times, most recently from 96aca85 to a9bcb53 Compare December 5, 2017 12:00
@carltongibson carltongibson force-pushed the 374/add-view-inspector-class-setting branch from a9bcb53 to f4d62c5 Compare December 14, 2017 09:54
@carltongibson carltongibson added this to the v3.7.4 milestone Dec 14, 2017
@carltongibson carltongibson merged commit 791539a into encode:master Dec 14, 2017
@carltongibson carltongibson deleted the 374/add-view-inspector-class-setting branch March 3, 2019 19:19
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
* Add test for new setting

* Add DefaultSchema utility

* Add new setting to docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant