org.apache.synapse.commons.json.jsonprocessor.validators

## Class ObjectValidator

- java.lang.Object
- - org.apache.synapse.commons.json.jsonprocessor.validators.ObjectValidator

-     public class ObjectValidator
      extends java.lang.Object

  This class will validate json objects according to the schema.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static com.google.gson.JsonObject` | `validateObject(com.google.gson.JsonObject object, com.google.gson.JsonObject schema)` This method will validate a given JSON input object according to

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### validateObject

          public static com.google.gson.JsonObject validateObject(com.google.gson.JsonObject object,
                                                                  com.google.gson.JsonObject schema)
                                                           throws ParserException,
                                                                  ValidatorException

      This method will validate a given JSON input object according to
      Parameters:
        `object` - JSON Object
        `schema` - JSON schema
      Returns:
        validated object
      Throws:
        `ParserException` - Exception occurred in data type conversions.
        `ValidatorException` - Exception occurred in schema validations.

Copyright © 2005-2020 Apache Software Foundation. All Rights Reserved.