- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 121 for patrice (0.24 sec)
-
docs_src/schema_extra_example/tutorial005_an_py39.py
"description": "A very nice Item", "price": 35.4, "tax": 3.2, }, }, "converted": { "summary": "An example with converted data", "description": "FastAPI can convert price `strings` to actual `numbers` automatically", "value": {
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Aug 26 18:03:13 GMT 2023 - 1.5K bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial005_py310.py
"price": 35.4, "tax": 3.2, }, }, "converted": { "summary": "An example with converted data", "description": "FastAPI can convert price `strings` to actual `numbers` automatically", "value": { "name": "Bar", "price": "35.4", },
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Aug 26 18:03:13 GMT 2023 - 1.3K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial005_an_py39.py
"price": 35.4, "tax": 3.2, }, }, "converted": { "summary": "An example with converted data", "description": "FastAPI can convert price `strings` to actual `numbers` automatically",
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Aug 26 18:03:13 GMT 2023 - 6.8K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial004.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Aug 04 20:47:07 GMT 2023 - 5K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial004_py310.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Aug 04 20:47:07 GMT 2023 - 5.2K bytes - Viewed (0) -
tests/test_tutorial/test_dataclasses/test_tutorial001.py
response = client.post("/items/", json={"name": "Foo", "price": 3}) assert response.status_code == 200 assert response.json() == { "name": "Foo", "price": 3, "description": None, "tax": None, } def test_post_invalid_item(): response = client.post("/items/", json={"name": "Foo", "price": "invalid price"}) assert response.status_code == 422
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 5.2K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial005_an.py
"price": 35.4, "tax": 3.2, }, }, "converted": { "summary": "An example with converted data", "description": "FastAPI can convert price `strings` to actual `numbers` automatically",
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Aug 26 18:03:13 GMT 2023 - 6.7K bytes - Viewed (0) -
tests/test_tutorial/test_body_fields/test_tutorial001_an_py310.py
} @needs_py310 def test_invalid_price(client: TestClient): response = client.put("/items/5", json={"item": {"name": "Foo", "price": -3.0}}) assert response.status_code == 422 assert response.json() == IsDict( { "detail": [ { "type": "greater_than", "loc": ["body", "item", "price"], "msg": "Input should be greater than 0",
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 7.3K bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial004.py
name: str description: Union[str, None] = None price: float tax: Union[float, None] = None @app.put("/items/{item_id}") async def update_item( *, item_id: int, item: Item = Body( examples=[ { "name": "Foo", "description": "A very nice Item", "price": 35.4, "tax": 3.2, }, {
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Jul 01 16:43:29 GMT 2023 - 824 bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial004_an_py310.py
description: str | None = None price: float tax: float | None = None @app.put("/items/{item_id}") async def update_item( *, item_id: int, item: Annotated[ Item, Body( examples=[ { "name": "Foo", "description": "A very nice Item", "price": 35.4, "tax": 3.2,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Jul 01 16:43:29 GMT 2023 - 917 bytes - Viewed (0)