Skip to content

Validation Result Object

Gnof edited this page Apr 10, 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]
}

Clone this wiki locally