Repository: serverlessworkflow/sdk-java
Pull request #328 (2024-02-08 18:48:46)

Upgrade com.networknt:json-schema-validator from 1.1.0 to 1.3.2
**Many thanks for submitting your Pull Request :heart:!**

**What this PR does / why we need it**:
Fix the bump registered in #324 

**Special notes for reviewers**:
The library changed the message output, so our tests won't pass.

**Additional information (if needed):**


Patch:
diff --git a/README.md b/README.md
index d895ec1..7ccfb91 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,8 @@ to parse and validate workflow definitions as well as generate the workflow diag
 
 | Latest Releases | Conformance to spec version |
 | :---: | :---: |
-| [4.0.5.Final](https://github.com/serverlessworkflow/sdk-java/releases/tag/4.0.5.Final) | [v0.8](https://github.com/serverlessworkflow/specification/tree/0.8.x) |
+| [4.0.4.Final](https://github.com/serverlessworkflow/sdk-java/releases/tag/4.0.4.Final) | [v0.8](https://github.com/serverlessworkflow/specification/tree/0.8.x) |
+| [4.0.3.Final](https://github.com/serverlessworkflow/sdk-java/releases/tag/4.0.3.Final) | [v0.8](https://github.com/serverlessworkflow/specification/tree/0.8.x) |
 | [3.0.0.Final](https://github.com/serverlessworkflow/sdk-java/releases/tag/3.0.0.Final) | [v0.7](https://github.com/serverlessworkflow/specification/tree/0.7.x) |
 | [2.0.0.Final](https://github.com/serverlessworkflow/sdk-java/releases/tag/2.0.0.Final) | [v0.6](https://github.com/serverlessworkflow/specification/tree/0.6.x) |
 | [1.0.3.Final](https://github.com/serverlessworkflow/sdk-java/releases/tag/1.0.3.Final) | [v0.5](https://github.com/serverlessworkflow/specification/tree/0.5.x) |
diff --git a/api/src/main/java/io/serverlessworkflow/api/workflow/Events.java b/api/src/main/java/io/serverlessworkflow/api/workflow/Events.java
index dd7a23b..a90c7d6 100644
--- a/api/src/main/java/io/serverlessworkflow/api/workflow/Events.java
+++ b/api/src/main/java/io/serverlessworkflow/api/workflow/Events.java
@@ -16,8 +16,8 @@
 package io.serverlessworkflow.api.workflow;
 
 import io.serverlessworkflow.api.events.EventDefinition;
-import java.util.List;
 import java.io.Serializable;
+import java.util.List;
 
 public class Events implements Serializable {
   private String refValue;
diff --git a/pom.xml b/pom.xml
index 8a0fe4c..b392586 100644
--- a/pom.xml
+++ b/pom.xml
@@ -72,7 +72,7 @@
     <!-- Dependencies versions, please keep in alphabetical order -->
     <version.ch.qos.logback>1.4.9</version.ch.qos.logback>
     <version.com.fasterxml.jackson>2.15.3</version.com.fasterxml.jackson>
-    <version.com.networknt>1.1.0</version.com.networknt>
+    <version.com.networknt>1.3.2</version.com.networknt>
     <version.commons.lang>3.14.0</version.commons.lang>
     <version.graphviz>0.17.0</version.graphviz>
     <version.hamcrest>1.3</version.hamcrest>


Test patch:
diff --git a/validation/src/test/java/io/serverlessworkflow/validation/test/WorkflowValidationTest.java b/validation/src/test/java/io/serverlessworkflow/validation/test/WorkflowValidationTest.java
index 0823752..6ccef44 100644
--- a/validation/src/test/java/io/serverlessworkflow/validation/test/WorkflowValidationTest.java
+++ b/validation/src/test/java/io/serverlessworkflow/validation/test/WorkflowValidationTest.java
@@ -122,7 +122,7 @@ public class WorkflowValidationTest {
     Assertions.assertEquals(1, validationErrors.size());
 
     Assertions.assertEquals(
-        "$.id: is missing but it is required", validationErrors.get(0).getMessage());
+        "$: required property 'id' not found", validationErrors.get(0).getMessage());
   }
 
   @Test