From 973ad398c708b4ff893712468aca1788752c66b7 Mon Sep 17 00:00:00 2001 From: yupix Date: Mon, 19 Feb 2024 15:23:15 +0900 Subject: [PATCH] chore: format --- compiler/type.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/compiler/type.py b/compiler/type.py index 54d747d..08a1108 100644 --- a/compiler/type.py +++ b/compiler/type.py @@ -24,18 +24,22 @@ class OpenAPIPath(TypedDict): security: list[dict[str, list[Any]]] requestBody: OpenAPIRequestBody + class OpenAPIComponentProperty(TypedDict): type: str | None format: NotRequired[str] items: NotRequired["OpenAPIComponentSchema"] + class OpenAPIComponentSchema(TypedDict): - type: Literal["object"] - properties: dict[str, OpenAPIComponentProperty] + type: Literal["object"] + properties: dict[str, OpenAPIComponentProperty] + class OpenAPIComponents(TypedDict): schemas: dict[str, OpenAPIComponentSchema] + class OpenAPI(TypedDict): openapi: str info: OpenAPIInfo