Meta
Meta conditions apply other condition functions.
meta.all
Evaluates data with a series of conditions. Every condition in the series must return true
for this condition to succeed.
Settings
Field | Type | Description | Required |
---|---|---|---|
conditions | object | The conditions used during inspection. | Yes |
Example
sub.condition.meta.all({conditions: [
sub.condition.format.json(),
sub.condition.number.length.greater_than(settings={value: 100})
]})
sub.cnd.all([
sub.condition.format.json(),
sub.condition.number.length.greater_than(settings={value: 100})
])
meta.any
Evaluates data with a series of conditions. Any condition in the series must return true
for this condition to succeed.
Settings
Field | Type | Description | Required |
---|---|---|---|
conditions | object | The conditions used during inspection. | Yes |
Example
sub.condition.meta.any({conditions: [
sub.condition.format.json(),
sub.condition.number.length.greater_than(settings={value: 100})
]})
sub.cnd.any([
sub.condition.format.json(),
sub.condition.number.length.greater_than(settings={value: 100})
])
meta.none
Evaluates data with a series of conditions. Every condition in the series must return false
for this condition to succeed.
Settings
Field | Type | Description | Required |
---|---|---|---|
conditions | object | The conditions used during inspection. | Yes |
Example
sub.condition.meta.none({conditions: [
sub.condition.format.json(),
sub.condition.number.length.greater_than(settings={value: 100})
]})
sub.cnd.none([
sub.condition.format.json(),
sub.condition.number.length.greater_than(settings={value: 100})
])
Evaluates data with an inspector that is negated (true becomes false, false becomes true).
Updated 4 months ago