Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 300 for deprecations (0.07 sec)

  1. tests/test_tutorial/test_request_forms/test_tutorial001_an_py39.py

                        "loc": ["body", "password"],
                        "msg": "Field required",
                        "input": None,
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", "password"],
                        "msg": "field required",
                        "type": "value_error.missing",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_multiple_params/test_tutorial003.py

                        "msg": "Field required",
                        "input": None,
                    },
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", "item"],
                        "msg": "field required",
                        "type": "value_error.missing",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_cookie_param_models/test_tutorial002.py

                            "msg": "Field required",
                            "input": {},
                        }
                    ]
                }
            )
            | IsDict(
                # TODO: remove when deprecating Pydantic v1
                {
                    "detail": [
                        {
                            "type": "value_error.missing",
                            "loc": ["cookie", "session_id"],
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_handling_errors/test_tutorial004.py

        assert response.status_code == 400, response.text
        # TODO: remove when deprecating Pydantic v1
        assert (
            # TODO: remove when deprecating Pydantic v1
            "path -> item_id" in response.text
            or "'loc': ('path', 'item_id')" in response.text
        )
        assert (
            # TODO: remove when deprecating Pydantic v1
            "value is not a valid integer" in response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_security/test_tutorial005_an.py

                    "User": {
                        "title": "User",
                        "required": IsOneOf(
                            ["username", "email", "full_name", "disabled"],
                            # TODO: remove when deprecating Pydantic v1
                            ["username"],
                        ),
                        "type": "object",
                        "properties": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_bigger_applications/test_main_an_py39.py

                        "loc": ["query", "token"],
                        "msg": "Field required",
                        "input": None,
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["query", "token"],
                        "msg": "field required",
                        "type": "value_error.missing",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  7. tests/test_schema_extra_examples.py

                                            ],
                                        }
                                    )
                                    | IsDict(
                                        # TODO: remove this when deprecating Pydantic v1
                                        {
                                            "allOf": [
                                                {"$ref": "#/components/schemas/Item"}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 37.7K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_header_param_models/test_tutorial002.py

                            "input": {"x_tag": [], "host": "testserver"},
                        }
                    )
                    | IsDict(
                        # TODO: remove when deprecating Pydantic v1
                        {
                            "type": "value_error.missing",
                            "loc": ["header", "save_data"],
                            "msg": "field required",
                        }
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_files/test_tutorial001_02_an_py39.py

                                            "title": "Body",
                                        }
                                    )
                                    | IsDict(
                                        # TODO: remove when deprecating Pydantic v1
                                        {
                                            "$ref": "#/components/schemas/Body_create_file_files__post"
                                        }
                                    )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_request_form_models/test_tutorial002_pv1_an.py

        return client
    
    
    # TODO: remove when deprecating Pydantic v1
    @needs_pydanticv1
    def test_post_body_form(client: TestClient):
        response = client.post("/login/", data={"username": "Foo", "password": "secret"})
        assert response.status_code == 200
        assert response.json() == {"username": "Foo", "password": "secret"}
    
    
    # TODO: remove when deprecating Pydantic v1
    @needs_pydanticv1
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top