Skip to content

Commit e4c28fc

Browse files
committed
missed a security object dependency removal
clarify usage doc
1 parent 67677c0 commit e4c28fc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/usage.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,10 @@ INSTALLED_APPS = [
905905
]
906906
```
907907

908-
You'll also need to make sure you are using the DJA AutoSchema class, either as the default schema class:
908+
You'll also need to make sure you are using the DJA AutoSchema class, either as the default schema class or
909+
explicitly as a view's `schema`:
910+
911+
### Default schema class
909912

910913
```python
911914
REST_FRAMEWORK = {
@@ -916,7 +919,7 @@ REST_FRAMEWORK = {
916919

917920
### View-based
918921

919-
Or you can explicit use DJA's AutoSchema it in your view definition, possible including an OAS schema document
922+
You can explicitly use DJA's AutoSchema in your view definition, optionally including an OAS schema document
920923
initializer:
921924

922925
```python
@@ -955,8 +958,6 @@ To generate an OAS schema document, use something like:
955958
$ django-admin generateschema --settings=example.settings >myschema.yaml
956959
```
957960

958-
959-
960961
You can then use any number of OAS tools such as
961962
[swagger-ui-watcher](https://www.npmjs.com/package/swagger-ui-watcher)
962963
to render the schema:

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ known_first_party = rest_framework_json_api
2323
# This is to "trick" isort into putting example below DJA imports.
2424
known_localfolder = example
2525
known_standard_library = mock
26-
known_third_party = rest_condition
2726
line_length = 100
2827
multi_line_output = 3
2928
skip=

0 commit comments

Comments
 (0)