Fires whenever a new transaction set is encountered and no schema is found for it.
class VDAReaderResolveSchemaEventParams(object): @property def transaction_code() -> str: ... @property def standard_version() -> str: ... # In class VDAReader: @property def on_resolve_schema() -> Callable[[VDAReaderResolveSchemaEventParams], None]: ... @on_resolve_schema.setter def on_resolve_schema(event_hook: Callable[[VDAReaderResolveSchemaEventParams], None]) -> None: ...
The on_resolve_schema event will fire when a the class encounters the header segment of a new transaction set, but it finds no schema corresponding to it already loaded.
TransactionCode contains the code of the transaction, such as "810" or "APERAK".
StandardVersion contains the version of the transaction, such as "004010" or "D95A".
When processing this event, the caller can use load_schema() to load a new schema into the class that can be used to parse the transaction.
After the event fires, if the class still doesn't have a matching schema, then it will attempt schema-less parsing of the transaction set.