private void performSchemaValidation(Message receivedMessage, JsonMessageValidationContext validationContext) {
        log.debug("Starting Json schema validation ...");

        ProcessingReport report = jsonSchemaValidation.validate(receivedMessage,
                                                                schemaRepositories,
                                                                validationContext,
                                                                applicationContext);
        if (!report.isSuccess()) {
            log.error("Failed to validate Json schema for message:\n" + receivedMessage.getPayload(String.class));

            throw new ValidationException(constructErrorMessage(report));
        }

        log.info("Json schema validation successful: All values OK");
    }
private void performSchemaValidation ( Message receivedMessage , JsonMessageValidationContext validationContext ) { log . debug ( "Starting Json schema validation ..." ) ; ProcessingReport report = jsonSchemaValidation . validate ( receivedMessage , schemaRepositories , validationContext , applicationContext ) ; if ( ! report . isSuccess ( ) ) { log . error ( "Failed to validate Json schema for message:\n" + receivedMessage . getPayload ( String . class ) ) ; throw new ValidationException ( constructErrorMessage ( report ) ) ; } log . info ( "Json schema validation successful: All values OK" ) ; }
Performs the schema validation for the given message under consideration of the given validation context
@param receivedMessage The message to be validated
@param validationContext The validation context of the current test