@@ -218,7 +218,7 @@ project you may adjust `settings.DEFAULT_SCHEMA_CLASS` appropriately.
218218
219219### Grouping Operations With Tags
220220
221- Tags can be used to group logical operations. Each tag name in the list MUST be unique.
221+ Tags can be used to group logical operations. Each tag name in the list MUST be unique.
222222
223223---
224224#### Django REST Framework generates tags automatically with the following logic:
@@ -249,7 +249,7 @@ Http Method | Path | Tags
249249-------------------------------------|-------------------------|-------------
250250PUT, PATCH, GET(Retrieve), DELETE | /order_items/{id}/ | [ 'order-items']
251251POST, GET(List) | /order_items/ | [ 'order-items']
252-
252+
253253
254254---
255255#### Overriding auto generated tags:
@@ -275,12 +275,12 @@ class MySchema(AutoSchema):
275275 if method == ' POST' :
276276 tags = [' tag1' , ' tag2' ]
277277 elif method == ' GET' :
278- tags = [' tag2' , ' tag3' ]
278+ tags = [' tag2' , ' tag3' ]
279279 elif path == ' /example/path/' :
280280 tags = [' tag3' , ' tag4' ]
281281 else :
282282 tags = [' tag5' , ' tag6' , ' tag7' ]
283-
283+
284284 return tags
285285
286286class MyView (APIView ):
@@ -370,11 +370,11 @@ If you want to have more control and customization about how the schema's compon
370370from rest_framework.schemas.openapi import AutoSchema
371371
372372class CustomSchema (AutoSchema ):
373- def get_components (self , path , method ):
374- # Implement your custom implementation
373+ def get_components (self , path , method ):
374+ # Implement your custom implementation
375375
376- def get_component_name (self , serializer ):
377- # Implement your custom implementation
376+ def get_component_name (self , serializer ):
377+ # Implement your custom implementation
378378
379379class CustomView (APIView ):
380380 """ APIView subclass with custom schema introspection."""
0 commit comments