- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for read_optional_list_str (0.1 seconds)
-
tests/test_request_params/test_query/test_optional_list.py
from pydantic import BaseModel, Field app = FastAPI() # ===================================================================================== # Without aliases @app.get("/optional-list-str") async def read_optional_list_str( p: Annotated[list[str] | None, Query()] = None, ): return {"p": p} class QueryModelOptionalListStr(BaseModel): p: list[str] | None = None @app.get("/model-optional-list-str")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 9.4K bytes - Click Count (0) -
tests/test_request_params/test_header/test_optional_list.py
from pydantic import BaseModel, Field app = FastAPI() # ===================================================================================== # Without aliases @app.get("/optional-list-str") async def read_optional_list_str( p: Annotated[list[str] | None, Header()] = None, ): return {"p": p} class HeaderModelOptionalListStr(BaseModel): p: list[str] | None = None @app.get("/model-optional-list-str")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 9.6K bytes - Click Count (0)