ValidateStringsHandlerProtocol
Event handler for SchemaValidator.validate_strings.
Methods
on_enter()
@classmethod
def on_enter(
input: StringInput,
strict: bool | None = None,
extra: ExtraValues | None = None,
context: Any | None = None,
by_alias: bool | None = None,
by_name: bool | None = None
) - > None
Callback to be notified of validation start, and create an instance of the event handler.
Parameters
| Name | Type | Description |
|---|---|---|
| input | StringInput | The string data to be validated. |
| strict | `bool | None` = None |
| extra | `ExtraValues | None` = None |
| context | `Any | None` = None |
| by_alias | `bool | None` = None |
| by_name | `bool | None` = None |
Returns
| Type | Description |
|---|---|
None | Nothing is returned; this method is used for its side effects in initializing the handler state. |