diff --git a/apm-agent-core/src/test/java/co/elastic/apm/agent/MockReporter.java b/apm-agent-core/src/test/java/co/elastic/apm/agent/MockReporter.java
index 1d927c4dce..6fe269b495 100644
--- a/apm-agent-core/src/test/java/co/elastic/apm/agent/MockReporter.java
+++ b/apm-agent-core/src/test/java/co/elastic/apm/agent/MockReporter.java
@@ -40,6 +40,7 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.networknt.schema.JsonSchema;
import com.networknt.schema.JsonSchemaFactory;
+import com.networknt.schema.SpecVersion;
import com.networknt.schema.ValidationMessage;
import org.awaitility.core.ThrowingRunnable;
import org.stagemonitor.configuration.ConfigurationRegistry;
@@ -810,7 +811,7 @@ private enum SchemaInstance {
private static JsonSchema getSchema(String resource) {
InputStream input = Objects.requireNonNull(MockReporter.class.getResourceAsStream(resource), "missing resource " + resource);
- return JsonSchemaFactory.getInstance().getSchema(input);
+ return JsonSchemaFactory.getInstance(SpecVersion.VersionFlag.V4).getSchema(input);
}
}
diff --git a/pom.xml b/pom.xml
index 0e376b96b8..55daeaac73 100644
--- a/pom.xml
+++ b/pom.xml
@@ -129,7 +129,7 @@
1.5.0
5.0.15.RELEASE
9.4.11.v20180605
- 1.1.0
+ 1.3.3
1.14.12
9.6