iya-sts
    Preparing search index...
    validate: (name: string, document: unknown) => Verdict = ...

    Type Declaration

      • (name: string, document: unknown): Verdict
      • Validates a document against a named schema.

        Parameters

        • name: string

          the schema's name in SCHEMAS

        • document: unknown

          the parsed JSON document

        Returns Verdict

        { ok: true }, or { ok: false, path, detail } with the member named by its JSON Pointer