Function modifyValidRequestPredicate
- modifyValidRequestPredicate<T, S>(validator, modifier): SchemaPredicate<S>
Parameters
modifier: ((schema) => UncheckedJSONSchemaType<S, false>)
- (schema): UncheckedJSONSchemaType<S, false>
Parameters
schema: UncheckedJSONSchemaType<T, false>
Returns UncheckedJSONSchemaType<S, false>
- modified schema predicate
Modify an existing valid request predicate with a new schema. Throws NBError if the validator is not a valid schema predicate.