Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for __get_pydantic_core_schema__ (0.34 sec)

  1. tests/test_compat.py

        assert field.default is Undefined
    
    
    @needs_pydanticv1
    def test_upload_file_dummy_with_info_plain_validator_function():
        # For coverage
        assert UploadFile.__get_pydantic_core_schema__(str, lambda x: None) == {}
    
    
    @needs_pydanticv1
    def test_union_scalar_list():
        # For coverage
        # TODO: there might not be a current valid code path that uses this, it would
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  2. fastapi/datastructures.py

            cls, core_schema: CoreSchema, handler: GetJsonSchemaHandler
        ) -> JsonSchemaValue:
            return {"type": "string", "format": "binary"}
    
        @classmethod
        def __get_pydantic_core_schema__(
            cls, source: Type[Any], handler: Callable[[Any], CoreSchema]
        ) -> CoreSchema:
            return with_info_plain_validator_function(cls._validate)
    
    
    class DefaultPlaceholder:
        """
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  3. fastapi/openapi/models.py

                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:
                return with_info_plain_validator_function(cls._validate)
    
    
    class BaseModelWithConfig(BaseModel):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (0)
  4. fastapi/_compat.py

        return (
            _annotation_is_complex(annotation)
            or _annotation_is_complex(origin)
            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
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
Back to top