From 1ca28f230df07cc2f4d21109b014bd102095c00c Mon Sep 17 00:00:00 2001 From: Justin Tay <49700559+justin-tay@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:43:51 +0800 Subject: [PATCH] Enable format assertions for optional/ecmascript-regex.json --- .../kafka/test/perf/testsuite/JsonSchemaTestSuite.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/creekservice/kafka/test/perf/testsuite/JsonSchemaTestSuite.java b/src/main/java/org/creekservice/kafka/test/perf/testsuite/JsonSchemaTestSuite.java index a9e44bf..b824c3a 100644 --- a/src/main/java/org/creekservice/kafka/test/perf/testsuite/JsonSchemaTestSuite.java +++ b/src/main/java/org/creekservice/kafka/test/perf/testsuite/JsonSchemaTestSuite.java @@ -143,7 +143,9 @@ private JsonValidator prepareValidator( final SchemaSpec spec, final TestSuite suite, final Implementation implementation) { try { final boolean format = - Paths.get("format").equals(suite.filePath().getParent().getFileName()); + Paths.get("format").equals(suite.filePath().getParent().getFileName()) + || Paths.get("ecmascript-regex.json") + .equals(suite.filePath().getFileName()); return implementation.prepare( suite.schema(), spec, additionalSchemas, suite.optional() && format); } catch (final Throwable t) {