You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mipac/compiler/type.py

37 lines
744 B

from typing import Any, Literal, TypedDict
class OpenAPIInfo(TypedDict):
version: str
title: str
class OpenAPIExternalDocs(TypedDict):
description: str
url: str
class OpenAPIRequestBody(TypedDict):
required: bool
class OpenAPIPath(TypedDict):
operationId: str
summary: str
description: str
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