ValidateJsonHandlerProtocol
Event handler for SchemaValidator.validate_json.
Methods
on_enter()
@classmethod
def on_enter(
input: str | bytes | bytearray,
strict: bool | None = None,
extra: ExtraValues | 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 | `str | bytes |
| strict | `bool | None` = None |
| extra | `ExtraValues | 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. |