Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for string_too_short (0.09 sec)

  1. tests/test_tutorial/test_query_params_str_validations/test_tutorial006c.py

        response = client.get("/items/", params={"q": "fa"})
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "string_too_short",
                    "loc": ["query", "q"],
                    "msg": "String should have at least 3 characters",
                    "input": "fa",
                    "ctx": {"min_length": 3},
                }
            ]
        }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 5K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_query_params_str_validations/test_tutorial003.py

        response = client.get("/items/", params={"q": "qu"})
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "string_too_short",
                    "loc": ["query", "q"],
                    "msg": "String should have at least 3 characters",
                    "input": "qu",
                    "ctx": {"min_length": 3},
                }
            ]
        }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_query_params_str_validations/test_tutorial005.py

        response = client.get("/items/", params={"q": "fa"})
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "string_too_short",
                    "loc": ["query", "q"],
                    "msg": "String should have at least 3 characters",
                    "input": "fa",
                    "ctx": {"min_length": 3},
                }
            ]
        }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_query_params_str_validations/test_tutorial007.py

        response = client.get("/items/", params={"q": "fa"})
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "string_too_short",
                    "loc": ["query", "q"],
                    "msg": "String should have at least 3 characters",
                    "input": "fa",
                    "ctx": {"min_length": 3},
                }
            ]
        }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_query_params_str_validations/test_tutorial006.py

        response = client.get("/items/", params={"q": "fa"})
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "string_too_short",
                    "loc": ["query", "q"],
                    "msg": "String should have at least 3 characters",
                    "input": "fa",
                    "ctx": {"min_length": 3},
                }
            ]
        }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_query_params_str_validations/test_tutorial008.py

        response = client.get("/items/", params={"q": "fa"})
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "string_too_short",
                    "loc": ["query", "q"],
                    "msg": "String should have at least 3 characters",
                    "input": "fa",
                    "ctx": {"min_length": 3},
                }
            ]
        }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. 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"}),
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  8. 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},
                }
            ]
    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