Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Chen (0.15 sec)

  1. tests/test_tutorial/test_handling_errors/test_tutorial005.py

                        "input": "XL",
                    }
                ],
                "body": {"title": "towel", "size": "XL"},
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", "size"],
                        "msg": "value is not a valid integer",
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_response_model/test_tutorial005.py

                    "Item": {
                        "title": "Item",
                        "required": IsOneOf(
                            ["name", "description", "price", "tax"],
                            # TODO: remove when deprecating Pydantic v1
                            ["name", "price"],
                        ),
                        "type": "object",
                        "properties": {
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Aug 04 20:47:07 GMT 2023
    - 6K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py

                                "items": {"$ref": "#/components/schemas/ValidationError"},
                            }
                        },
                    },
                }
            },
        }
    
    
    # TODO: remove when deprecating Pydantic v1
    @needs_pydanticv1
    def test_openapi_schema_pv1():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_path_params/test_tutorial005.py

                        "input": "foo",
                        "ctx": {"expected": "'alexnet', 'resnet' or 'lenet'"},
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "ctx": {"enum_values": ["alexnet", "resnet", "lenet"]},
                        "loc": ["path", "model_name"],
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 5K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_query_params/test_tutorial005.py

                        "loc": ["query", "needy"],
                        "msg": "Field required",
                        "input": None,
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["query", "needy"],
                        "msg": "field required",
                        "type": "value_error.missing",
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 4K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_security/test_tutorial005.py

                    "User": {
                        "title": "User",
                        "required": IsOneOf(
                            ["username", "email", "full_name", "disabled"],
                            # TODO: remove when deprecating Pydantic v1
                            ["username"],
                        ),
                        "type": "object",
                        "properties": {
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_schema_extra_example/test_tutorial005.py

                                "application/json": {
                                    "schema": IsDict({"$ref": "#/components/schemas/Item"})
                                    | IsDict(
                                        # TODO: remove when deprecating Pydantic v1
                                        {
                                            "allOf": [
                                                {"$ref": "#/components/schemas/Item"}
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Aug 26 18:03:13 GMT 2023
    - 6.7K bytes
    - Viewed (0)
Back to top