• A validator is a function is passed a schema and some data to validate against the it. Errors if your schema contains $refs. Use the json-schema-tools/dereferencer beforehand. Circular references are handled.

    Parameters

    • schema: JSONSchema

      the schema to validate against

    • data: any

      the data to apply the schema to

    Returns true | ValidationErrors

Generated using TypeDoc