Skip to content

Commit

Permalink
feat: openapiの型を少し追加
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Nov 29, 2023
1 parent 49132de commit 9bd0ea3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@ class OpenAPIPath(TypedDict):
externalDocs: OpenAPIExternalDocs
tags: list[str]
security: list[dict[str, list[Any]]]
requestBody: OpenAPIRequestBody


class OpenAPIComponents(TypedDict):
schemas: dict[str, dict[str, Any]]

class OpenAPI(TypedDict):
openapi: str
info: OpenAPIInfo
externalDocs: OpenAPIExternalDocs
paths: dict[str, dict[Literal['post', 'get'], OpenAPIPath]]
components: OpenAPIComponents

0 comments on commit 9bd0ea3

Please sign in to comment.