API Reference
    Preparing search index...

    Options to customize the JSON Schema validation.

    The data to validate.

    The JSON schema for validation.

    Optional JMESPATH expression to use as envelope for the payload.

    Optional formats for validation.

    Optional external references for validation.

    Optional Ajv instance to use for validation, if not provided a new instance will be created.

    type ValidateParams = {
        ajv?: Ajv;
        envelope?: string;
        externalRefs?: AnySchema | AnySchema[];
        formats?: Record<string, Format>;
        payload: unknown;
        schema: AnySchema;
    }
    Index

    Properties

    ajv?: Ajv

    Optional Ajv instance to use for validation, if not provided a new instance will be created.

    envelope?: string

    Optional JMESPATH expression to use as envelope for the payload.

    externalRefs?: AnySchema | AnySchema[]

    Optional external references for validation.

    formats?: Record<string, Format>

    Optional formats for validation.

    payload: unknown

    The data to validate.

    schema: AnySchema

    The JSON schema for validation.