- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for float_parsing (0.05 sec)
-
tests/test_tutorial/test_dataclasses/test_tutorial001.py
response = client.post("/items/", json={"name": "Foo", "price": "invalid price"}) assert response.status_code == 422 assert response.json() == { "detail": [ { "type": "float_parsing", "loc": ["body", "price"], "msg": "Input should be a valid number, unable to parse string as a number", "input": "invalid price", } ] }
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 4.6K bytes - Viewed (0)