Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for string_too_short (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_annotated.py

        ]
    }
    foo_is_short = {
        "detail": [
            {
                "ctx": {"min_length": 1},
                "loc": ["query", "foo"],
                "msg": "String should have at least 1 character",
                "type": "string_too_short",
                "input": "",
            }
        ]
    }
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            ("/default", 200, {"foo": "foo"}),
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  2. tests/test_path.py

        response = client.get("/path/param-minlength/fo")
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "string_too_short",
                    "loc": ["path", "item_id"],
                    "msg": "String should have at least 3 characters",
                    "input": "fo",
                    "ctx": {"min_length": 3},
                }
            ]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 20.5K bytes
    - Click Count (2)
Back to Top