- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for nilable (0.22 sec)
-
fastapi/utils.py
f"check that {type_} is a valid Pydantic field type. " "If you are using a return type annotation that is not a valid Pydantic " "field (e.g. Union[Response, dict, None]) you can disable generating the " "response model from the type annotation with the path operation decorator " "parameter response_model=None. Read more: " "https://fastapi.tiangolo.com/tutorial/response-model/"
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 7.8K bytes - Viewed (0) -
tests/test_required_noneable.py
def test_required_nonable_explicit_query_value(): response = client.get("/explicit-query", params={"q": "foo"}) assert response.status_code == 200 assert response.json() == "foo" def test_required_nonable_body_embed_no_content(): response = client.post("/body-embed") assert response.status_code == 422 def test_required_nonable_body_embed_invalid():
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat May 14 19:08:31 GMT 2022 - 1.5K bytes - Viewed (0) -
tests/test_tutorial/test_conditional_openapi/test_tutorial001.py
from docs_src.conditional_openapi import tutorial001 importlib.reload(tutorial001) client = TestClient(tutorial001.app) return client @needs_pydanticv2 def test_disable_openapi(monkeypatch): monkeypatch.setenv("OPENAPI_URL", "") # Load the client after setting the env var client = get_client() response = client.get("/openapi.json")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 1.8K bytes - Viewed (0)