diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 3dc438e..9fa843f 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -9,10 +9,9 @@
name: Java CI with Maven
on:
- push:
- branches: [ "main" ]
- pull_request_target:
- branches: [ "main" ]
+ pull_request:
+ branches:
+ - main
jobs:
regression-tests:
diff --git a/pom.xml b/pom.xml
index 7ebdbae..b9fc919 100644
--- a/pom.xml
+++ b/pom.xml
@@ -203,6 +203,19 @@
2.18.3
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ 5.9.0
+ test
+
+
+ org.junit.platform
+ junit-platform-runner
+ 1.2.0
+ test
+
diff --git a/src/test/java/AppTest.java b/src/test/java/AppTest.java
index 48a5c80..eff9e57 100644
--- a/src/test/java/AppTest.java
+++ b/src/test/java/AppTest.java
@@ -333,7 +333,7 @@ public void jsonSchemaTest() {
JsonNode petSchema = MappingUtilities.Json.Schema.getJsonNodeFor(Pet.class);
Assert.assertEquals(
"Generated json schema did not match the expected one!",
- "{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\"},\"category\":{\"type\":\"any\"},\"name\":{\"type\":\"string\"},\"photoUrls\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"tags\":{\"type\":\"array\",\"items\":{\"type\":\"any\"}},\"status\":{\"type\":\"string\"}}}",
+ "{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\"},\"category\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\"},\"name\":{\"type\":\"string\"}}},\"name\":{\"type\":\"string\"},\"photoUrls\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"tags\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\"},\"name\":{\"type\":\"string\"}}}},\"status\":{\"type\":\"string\"}}}",
petSchema.toString()
);
}