public static ProcessingReport validate(JsonNode inputSpecNode,JsonNode referenceSchema) throws HyscaleException{
        if(referenceSchema==null || referenceSchema.isNull()){
            LOGGER.error(CommonErrorCode.EMPTY_REFERENCE_SCHEMA_FOUND.getMessage());
            throw new HyscaleException(CommonErrorCode.EMPTY_REFERENCE_SCHEMA_FOUND);
        }
        try {
            JsonSchema schema = factory.getJsonSchema(referenceSchema);
            return schema.validate(inputSpecNode, true);
        }catch (ProcessingException p){
            LOGGER.error(p.getMessage());
            throw new HyscaleException(p,CommonErrorCode.SCHEMA_PROCESSING_ERROR);
        }
    }
Validates whether the given input json node satisfies schema.

@param inputSpecNode JsonNode input
@param referenceSchema JsonNode input
@return ProcessingReport
@throws HyscaleException
service-spec/schema-validator/src/main/java/io/hyscale/schema/validator/JsonSchemaValidator.java