iya-sts
    Preparing search index...
    validate: (input: unknown, pep?: string) => Validated = ...

    Type Declaration

      • (input: unknown, pep?: string): Validated
      • Validates a reverse-proxy configuration document whole and answers it normalised, every member present, or refuses it by name with a code.

        Parameters

        • input: unknown

          the document, as an object or as JSON text

        • Optionalpep: string

          the PEP the document is for: a simple or public route's policy is then the one generated for it (generatedPolicyName())

        Returns Validated

        { ok: true, proxy }, or { ok: false, why, code }