Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for string_too_short (0.23 sec)

  1. tests/test_annotated.py

            IsDict(
                {
                    "ctx": {"min_length": 1},
                    "loc": ["query", "foo"],
                    "msg": "String should have at least 1 character",
                    "type": "string_too_short",
                    "input": "",
                }
            )
            # TODO: remove when deprecating Pydantic v1
            | IsDict(
                {
                    "ctx": {"limit_value": 1},
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  2. tests/test_path.py

        response = client.get("/path/param-minlength/fo")
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "string_too_short",
                        "loc": ["path", "item_id"],
                        "msg": "String should have at least 3 characters",
                        "input": "fo",
                        "ctx": {"min_length": 3},
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 34.4K bytes
    - Viewed (0)
Back to top