Skip to content

Commit e59097e

Browse files
hnykdasobolevn
andauthored
Adding additional root keys (#160)
* Root keys * Update rest_framework-stubs/schemas/openapi.pyi * Update rest_framework-stubs/schemas/openapi.pyi Co-authored-by: Nikita Sobolev <[email protected]> * Update rest_framework-stubs/schemas/openapi.pyi Co-authored-by: Nikita Sobolev <[email protected]>
1 parent 735e84c commit e59097e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rest_framework-stubs/schemas/openapi.pyi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,19 @@ class DRFOpenAPIInfo(TypedDict, total=False):
1717
version: str
1818
description: str
1919

20+
class ExternalDocumentationObject(TypedDict, total=False):
21+
description: str
22+
url: str
23+
2024
class DRFOpenAPISchema(TypedDict, total=False):
2125
openapi: str
2226
info: DRFOpenAPIInfo
2327
paths: Dict[str, Dict[str, Any]]
2428
components: Dict[str, Dict[str, Any]]
29+
security: List[Dict[str, List[Any]]]
30+
tags: List[Dict[str, Any]]
31+
externalDocs: ExternalDocumentationObject
32+
servers: List[Dict[str, Any]]
2533

2634
class SchemaGenerator(BaseSchemaGenerator):
2735
def get_info(self) -> DRFOpenAPIInfo: ...

0 commit comments

Comments
 (0)