Skip to content

not_empty_list ​

Checks that the value is a list with at least one element.

Error codes: CANNOT_BE_EMPTY if the value is missing or the list is empty, FORMAT_ERROR if the value is present but is not a list.

Live example · edit rules or inputOpen in playground
rules
input
Invaliderrors
{
  "product_ids": "CANNOT_BE_EMPTY"
}