Parse the record according to the schema and event type passed.
If the passed schema is already an extended schema,
use the schema directly to parse the record.
Parts of the parser integration within BatchProcessor rely on Zod for schema transformations,
however some other parts also support other Standard Schema-compatible libraries.
Parse the record according to the schema and event type passed.
If the passed schema is already an extended schema, use the schema directly to parse the record.
Parts of the parser integration within BatchProcessor rely on Zod for schema transformations, however some other parts also support other Standard Schema-compatible libraries.