Class ObjectValidator


  • public class ObjectValidator
    extends Object
    This class will validate json objects according to the schema.
    • 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.