From 6d7ba58f880be618ade07f8ea080fe8c4bf8a896 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 3 Apr 2024 03:10:44 -0400 Subject: venv --- .../site-packages/litestar/openapi/spec/info.py | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 venv/lib/python3.11/site-packages/litestar/openapi/spec/info.py (limited to 'venv/lib/python3.11/site-packages/litestar/openapi/spec/info.py') diff --git a/venv/lib/python3.11/site-packages/litestar/openapi/spec/info.py b/venv/lib/python3.11/site-packages/litestar/openapi/spec/info.py new file mode 100644 index 0000000..1d858db --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/openapi/spec/info.py @@ -0,0 +1,50 @@ +from __future__ import annotations + +from dataclasses import dataclass +from typing import TYPE_CHECKING + +from litestar.openapi.spec.base import BaseSchemaObject + +if TYPE_CHECKING: + from litestar.openapi.spec.contact import Contact + from litestar.openapi.spec.license import License + +__all__ = ("Info",) + + +@dataclass +class Info(BaseSchemaObject): + """The object provides metadata about the API. + + The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools + for convenience. + """ + + title: str + """ + **REQUIRED**. The title of the API. + """ + + version: str + """ + **REQUIRED**. The version of the OpenAPI document which is distinct from the + `OpenAPI Specification version `_ or the API implementation version + """ + + summary: str | None = None + """A short summary of the API.""" + + description: str | None = None + """A description of the API. + + `CommonMark syntax `_ MAY be used for rich text representation. + """ + + terms_of_service: str | None = None + """A URL to the Terms of Service for the API. MUST be in the form of a URL.""" + + contact: Contact | None = None + """The contact information for the exposed API.""" + + license: License | None = None + """The license information for the exposed API.""" -- cgit v1.2.3