Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 202 for Chen (0.2 sec)

  1. tests/test_path.py

                        "msg": "Input should be a valid integer, unable to parse string as an integer",
                        "input": "foobar",
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["path", "item_id"],
                        "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
    - 34.4K bytes
    - Viewed (0)
  2. fastapi/routing.py

                # would pass the validation and be returned as is.
                # By being a new field, no inheritance will be passed as is. A new model
                # will always be created.
                # TODO: remove when deprecating Pydantic v1
                self.secure_cloned_response_field: Optional[
                    ModelField
                ] = create_cloned_field(self.response_field)
            else:
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  3. fastapi/security/open_id_connect_url.py

                    If `auto_error` is set to `False`, when the HTTP Authorization header
                    is not available, instead of erroring out, the dependency result will
                    be `None`.
    
                    This is useful when you want to have optional authentication.
    
                    It is also useful when you want to have authentication that can be
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_request_files/test_tutorial001_02_py310.py

                                            "title": "Body",
                                        }
                                    )
                                    | IsDict(
                                        # TODO: remove when deprecating Pydantic v1
                                        {
                                            "$ref": "#/components/schemas/Body_create_file_files__post"
                                        }
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_request_files/test_tutorial001_02.py

                                            "title": "Body",
                                        }
                                    )
                                    | IsDict(
                                        # TODO: remove when deprecating Pydantic v1
                                        {
                                            "$ref": "#/components/schemas/Body_create_file_files__post"
                                        }
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 8.2K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_security/test_tutorial005_an_py310.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
    - 16.3K bytes
    - Viewed (0)
  7. 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",
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  8. fastapi/encoders.py

    # TODO: pv2 should this return strings instead?
    def decimal_encoder(dec_value: Decimal) -> Union[int, float]:
        """
        Encodes a Decimal as int of there's no exponent, otherwise float
    
        This is useful when we use ConstrainedDecimal to represent Numeric(x,0)
        where a integer (but not int typed) is used. Encoding this as a float
        results in failed round-tripping between encode and parse.
        Our Id type is a prime example of this.
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_schema_extra_example/test_tutorial004_an.py

                                            ],
                                        }
                                    )
                                    | IsDict(
                                        # TODO: remove when deprecating Pydantic v1
                                        {
                                            "allOf": [
                                                {"$ref": "#/components/schemas/Item"}
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 6.9K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_schema_extra_example/test_tutorial004_an_py39.py

                                            ],
                                        }
                                    )
                                    | IsDict(
                                        # TODO: remove when deprecating Pydantic v1
                                        {
                                            "allOf": [
                                                {"$ref": "#/components/schemas/Item"}
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 7.1K bytes
    - Viewed (0)
Back to top