OptionalschemaMap: Partial<Adds rules to a field, after any it already has. Returns the validator for chaining.
Field name in the form object.
Rules to append, checked in order.
The same validator.
Checks every field. Each field stops at its first failing rule. Non-object input, arrays,
and class instances fail with code SCHEMA_INVALID_ROOT instead of throwing.
Form data to check, usually a parsed request body.
{ isValid: true, data } with every field's parsed value, or { isValid: false, data } with
only the fields that passed. Both include errors (messages), errorCodes, and errorList, keyed by field.
Validates a form object field by field. Create one with createSchemaValidator, or with
new SchemaValidator()and SchemaValidator.field.