From 6d7ba58f880be618ade07f8ea080fe8c4bf8a896 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 3 Apr 2024 03:10:44 -0400 Subject: venv --- .../litestar/openapi/spec/callback.py | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 venv/lib/python3.11/site-packages/litestar/openapi/spec/callback.py (limited to 'venv/lib/python3.11/site-packages/litestar/openapi/spec/callback.py') diff --git a/venv/lib/python3.11/site-packages/litestar/openapi/spec/callback.py b/venv/lib/python3.11/site-packages/litestar/openapi/spec/callback.py new file mode 100644 index 0000000..c4bb129 --- /dev/null +++ b/venv/lib/python3.11/site-packages/litestar/openapi/spec/callback.py @@ -0,0 +1,24 @@ +from __future__ import annotations + +from typing import TYPE_CHECKING, Dict, Union + +if TYPE_CHECKING: + from litestar.openapi.spec.path_item import PathItem + from litestar.openapi.spec.reference import Reference + + +Callback = Dict[str, Union["PathItem", "Reference"]] +"""A map of possible out-of band callbacks related to the parent operation. Each value in the map is a +`Path Item Object `_ that describes a set of requests that may be +initiated by the API provider and the expected responses. The key value used to identify the path item object is an +expression, evaluated at runtime, that identifies a URL to use for the callback operation. + +Patterned Fields + +{expression}: 'PathItem' = ... + +A Path Item Object used to define a callback request and expected responses. + +A `complete example `_ is +available. +""" -- cgit v1.2.3