Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Chandler (2.79 sec)

  1. tests/test_tutorial/test_custom_request_and_route/test_tutorial002.py

    client = TestClient(app)
    
    
    def test_endpoint_works():
        response = client.post("/", json=[1, 2, 3])
        assert response.json() == 6
    
    
    def test_exception_handler_body_access():
        response = client.post("/", json={"numbers": [1, 2, 3]})
        assert response.json() == IsDict(
            {
                "detail": {
                    "errors": [
                        {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  2. fastapi/openapi/models.py

            @classmethod
            def __get_pydantic_json_schema__(
                cls, core_schema: CoreSchema, handler: GetJsonSchemaHandler
            ) -> JsonSchemaValue:
                return {"type": "string", "format": "email"}
    
            @classmethod
            def __get_pydantic_core_schema__(
                cls, source: Type[Any], handler: Callable[[Any], CoreSchema]
            ) -> CoreSchema:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  3. fastapi/_compat.py

            or hasattr(origin, "__pydantic_core_schema__")
            or hasattr(origin, "__get_pydantic_core_schema__")
        )
    
    
    def field_annotation_is_scalar(annotation: Any) -> bool:
        # handle Ellipsis here to make tuple[int, ...] work nicely
        return annotation is Ellipsis or not field_annotation_is_complex(annotation)
    
    
    def field_annotation_is_scalar_sequence(annotation: Union[Type[Any], None]) -> bool:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
Back to top