Error > All live animal Cycles should have excreta as a Product
New Validation
Validation
This validator ensures that all animal production cycles have an excreta term in the Products.
Validation Conditions
- If the any Product
termType = liveAnimal
- And there are no Products of
termType = excreta
- Then show error
Validation Level
-
Warning: this might be an error, but we will still allow the upload to be validated. -
Error: this is an error and must be fixed to validate the upload.
Example
Input Data
Example:
{
"@type": "Cycle",
"products": [
{
"@type": "Product",
"term": {
"termType": "liveAnimal"
},
"value": [
1
]
}
]
}
Output error/warning message
Animal production Cycles create excreta. There must be at least one excreta product in this Cycle. Please add an excreta Product to the Cycle. You do not need to set a value
for the Product, but adding a value
is desirable.
Additional Notes
Edited by Joseph Poore