Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for string_too_long (0.27 sec)

  1. tests/test_path.py

        response = client.get("/path/param-maxlength/foobar")
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "string_too_long",
                    "loc": ["path", "item_id"],
                    "msg": "String should have at most 3 characters",
                    "input": "foobar",
                    "ctx": {"max_length": 3},
                }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 20.5K bytes
    - Viewed (1)
Back to top