PlainValidator
A metadata class that indicates that a validation should be applied instead of the inner validation logic.
Attributes
| Attribute | Type | Description |
|---|---|---|
| func | `core_schema.NoInfoValidatorFunction | core_schema.WithInfoValidatorFunction` |
| json_schema_input_type | Any = Any | The input type used to generate the appropriate JSON Schema (in validation mode). |
Constructor
Signature
def PlainValidator(
func: core_schema.NoInfoValidatorFunction | core_schema.WithInfoValidatorFunction,
json_schema_input_type: Any = Any
)
Parameters
| Name | Type | Description |
|---|---|---|
| func | `core_schema.NoInfoValidatorFunction | core_schema.WithInfoValidatorFunction` |
| json_schema_input_type | Any = Any | The input type used to generate the appropriate JSON Schema in validation mode. |