The object to validate.
The JSON schema to validate against.
Whether to strip or fail on invalid additional properties.
Optional
identifier: stringThe identifier of the schema being validated, used to cache the validator.
The result of the validation. If the state is 'error', the errors will be in a zod-like format.
Given a subject object and a JSON schema contract, validate the subject against the contract.
Errors are returned in a zod-like format, and processed to better handle unions.