Skip to main content

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

NameTypeDescription
inputStringInputThe string data to be validated.
strict`boolNone` = None
extra`ExtraValuesNone` = None
context`AnyNone` = None
by_alias`boolNone` = None
by_name`boolNone` = None

Returns

TypeDescription
NoneNothing is returned; this method is used for its side effects in initializing the handler state.