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 DEFAULT_SCHEMA_CLASS setting #5658

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 Dec 5, 2017
@carltongibson carltongibson force-pushed the 374/add-view-inspector-class-setting branch from a9bcb53 to f4d62c5 Compare Dec 14, 2017
@carltongibson carltongibson added this to the v3.7.4 milestone Dec 14, 2017
@carltongibson carltongibson merged commit 791539a into encode:master Dec 14, 2017
1 check passed
@carltongibson carltongibson deleted the 374/add-view-inspector-class-setting branch Mar 3, 2019
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.

None yet

1 participant