@Test public void should_retrieve_errors_when_send_malformed_filter_query_dsl() throws IOException, InvalidParseOperationException { JsonNode test1Json = mapper .readTree(PropertiesUtils.getResourceFile("test1.json")); final Schema schema = loadSchema(PropertiesUtils.getResourceFile("dsl.json")); assertThatThrownBy(() -> Validator.validate(schema, "DSL", test1Json)) .hasMessageContaining("$roots: guid[] ~ INVALID_VALUE: NUMBER "); }
public static void validate(Schema schema, String root, JsonNode document) throws ValidationException { new ValidatorEngine(schema).validate(document, root); }
Validator { public static void validate(Schema schema, String root, JsonNode document) throws ValidationException { new ValidatorEngine(schema).validate(document, root); } }
Validator { public static void validate(Schema schema, String root, JsonNode document) throws ValidationException { new ValidatorEngine(schema).validate(document, root); }  }
Validator { public static void validate(Schema schema, String root, JsonNode document) throws ValidationException { new ValidatorEngine(schema).validate(document, root); }  static void validate(Schema schema, String root, JsonNode document); }
Validator { public static void validate(Schema schema, String root, JsonNode document) throws ValidationException { new ValidatorEngine(schema).validate(document, root); }  static void validate(Schema schema, String root, JsonNode document);  }