hestia_earth.validation.validators.shared.validate_list_model¶
-
hestia_earth.validation.validators.shared.validate_list_model(node, list_key)[source]¶ Validates a list using the engine models. This method will go through every element of the list and run the model that matches the methodModel and term.@id on the element. Note: if the methodTier returned is different than the reported one, the result will be ignored.
- Parameters:
node (dict) – The node containing the list to run.
list_key (str) – The property of the node containing the list to run.
- Returns:
List of errors from the models or True if no errors.
- Return type:
list