Skip to content
Gnof edited this page Apr 10, 2015 · 3 revisions

When JsonValidator.validate() is run, calling JsonValidator.getLastValidationDetail() returns a Result Object that is a JsonArray of key / value pairs. The key is the Json Validation Object used, and the value is the detailed results of the validation.

The detailed result looks something like this:

{{(validation used)}= 
    {
        validation-result: (true | false),
        validation-details: {has-attribute: (true | false), match-value:(true | false) ...}
    }
...
}

Attributes:

validation-result: is the overall pass / fail of the validation

validation-details: validation result object specific to the validation passed in. The validation result object has details on it's own page

Clone this wiki locally