ValidatePythonHandlerProtocol
Event handler for SchemaValidator.validate_python.
Methods
on_enter()
@classmethod
def on_enter(
input: Any,
strict: bool | None = None,
extra: ExtraValues | None = None,
from_attributes: bool | None = None,
context: Any | None = None,
self_instance: Any | None = None,
by_alias: bool | None = None,
by_name: bool | None = None
)
Callback to be notified of validation start, and create an instance of the event handler.
Parameters
| Name | Type | Description |
|---|---|---|
| input | Any | The raw input data or object to be validated against the schema |
| strict | `bool | None` = None |
| extra | `ExtraValues | None` = None |
| from_attributes | `bool | None` = None |
| context | `Any | None` = None |
| self_instance | `Any | None` = None |
| by_alias | `bool | None` = None |
| by_name | `bool | None` = None |
Returns
| Type | Description |
|---|---|
| Nothing is returned; this method is used for initialization and notification of the validation lifecycle start |