-
Notifications
You must be signed in to change notification settings - Fork 0
Validation Result Object
Gnof edited this page Apr 13, 2015
·
4 revisions
The Validation Result object is directly associated to a validation passed in to verify against a JSON and returns to the user in this format:
{
"has-attribute":(true|false),
"match-quantity":(true|false),
"quantity-found":(number of attributes found in target JSON),
"match-value":(true|false),
"value-found":[list of values found for the attribute specified],
"match-hierarchy":(true|false),
"hierarchy-found":[list of paths found to the attribute (or attribute / value if specified)]
"match-ancestor":(true|false),
"ancestor-found":[list of unique ancestors found to the attribute (or attribute / value if specified)],
"match-composite":true,
"composite-result":[list of Validation Result objects for EACH composite validation passed in]
}
Things to note:
The 'composite-result' set is the result of the main validation that runs against the filtered context of the target JSON. That is, the composite validation is used to filter the target JSON to a specific context after which the main validation is run against it, and this is the result.