ArrayConfig

Configure array-based validations (like allOf, noneOf, oneOf), specifying expected values and potentially customizing error messages.

The ArrayConfig interface extends the BaseValidatorConfig interface to provide configuration options for validators that operate on arrays of values. This allows you to define the expected values for validation and potentially customize error messages.

Inheritence

Properties:

  • matchValues (Optional): An array containing the expected values for the validation. The specific validation behavior might vary depending on the library implementation, but it's likely used for scenarios like:
    • allOf: Ensuring all values in the input array match the values in matchValues.
    • noneOf: Ensuring none of the values in the input array match the values in matchValues.
    • oneOf: Ensuring exactly one value in the input array matches a value in matchValues.