• Modify an existing valid request predicate with a new schema. Throws NBError if the validator is not a valid schema predicate.

    Type Parameters

    • T

    • S

    Parameters

    • validator: Predicate

      existing valid request predicate

    • modifier: ((schema) => UncheckedJSONSchemaType<S, false>)

      function to modify the schema

        • (schema): UncheckedJSONSchemaType<S, false>
        • Parameters

          • schema: UncheckedJSONSchemaType<T, false>

          Returns UncheckedJSONSchemaType<S, false>

    Returns SchemaPredicate<S>

    • modified schema predicate

Generated using TypeDoc