Skip to content

Commit 1ca28f2

Browse files
committed
Enable format assertions for optional/ecmascript-regex.json
1 parent 8771755 commit 1ca28f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/creekservice/kafka/test/perf/testsuite/JsonSchemaTestSuite.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ private JsonValidator prepareValidator(
143143
final SchemaSpec spec, final TestSuite suite, final Implementation implementation) {
144144
try {
145145
final boolean format =
146-
Paths.get("format").equals(suite.filePath().getParent().getFileName());
146+
Paths.get("format").equals(suite.filePath().getParent().getFileName())
147+
|| Paths.get("ecmascript-regex.json")
148+
.equals(suite.filePath().getFileName());
147149
return implementation.prepare(
148150
suite.schema(), spec, additionalSchemas, suite.optional() && format);
149151
} catch (final Throwable t) {

0 commit comments

Comments
 (0)