cookie_examples() — fastapi Function Reference
Architecture documentation for the cookie_examples() function in test_openapi_examples.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 76c25e29_4fc3_ec0b_c3a3_0c5a4dc512d3["cookie_examples()"] 8ac1d492_09f7_2975_cc25_f70aecbbb54b["test_openapi_examples.py"] 76c25e29_4fc3_ec0b_c3a3_0c5a4dc512d3 -->|defined in| 8ac1d492_09f7_2975_cc25_f70aecbbb54b style 76c25e29_4fc3_ec0b_c3a3_0c5a4dc512d3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_openapi_examples.py lines 105–121
def cookie_examples(
data: Union[str, None] = Cookie(
default=None,
examples=["json_schema_cookie1", "json_schema_cookie2"],
openapi_examples={
"Cookie One": {
"summary": "Cookie One Summary",
"description": "Cookie One Description",
"value": "cookie1",
},
"Cookie Two": {
"value": "cookie2",
},
},
),
):
return data
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does cookie_examples() do?
cookie_examples() is a function in the fastapi codebase, defined in tests/test_openapi_examples.py.
Where is cookie_examples() defined?
cookie_examples() is defined in tests/test_openapi_examples.py at line 105.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free