File tree 2 files changed +6
-3
lines changed
src/main/java/org/creekservice/kafka/test/perf/implementations 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ dependencies {
63
63
64
64
implementation(" net.jimblackler.jsonschemafriend:core:0.12.4" )
65
65
66
- implementation(" com.networknt:json-schema-validator:1.4.0 " )
66
+ implementation(" com.networknt:json-schema-validator:1.4.2 " )
67
67
68
68
implementation(" com.qindesign:snowy-json:0.16.0" )
69
69
runtimeOnly(" org.glassfish:jakarta.json:2.0.0:module" )
Original file line number Diff line number Diff line change 32
32
import com .networknt .schema .SchemaValidatorsConfig ;
33
33
import com .networknt .schema .SpecVersion ;
34
34
import com .networknt .schema .ValidationMessage ;
35
+ import com .networknt .schema .regex .JoniRegularExpressionFactory ;
35
36
import java .awt .Color ;
36
37
import java .io .IOException ;
37
38
import java .util .Map ;
@@ -143,10 +144,12 @@ private void validate(final JsonNode node) {
143
144
144
145
private JsonSchema parseSchema (
145
146
final String schema , final SchemaSpec spec , final AdditionalSchemas additionalSchemas ) {
146
- final SchemaValidatorsConfig config = new SchemaValidatorsConfig ();
147
147
// By default, the library uses the JDK regular expression implementation which is not ECMA
148
148
// 262 compliant. This requires the joni dependency
149
- config .setEcma262Validator (true );
149
+ final SchemaValidatorsConfig config =
150
+ SchemaValidatorsConfig .builder ()
151
+ .regularExpressionFactory (JoniRegularExpressionFactory .getInstance ())
152
+ .build ();
150
153
return JsonSchemaFactory .getInstance (
151
154
schemaVersion (spec ),
152
155
builder ->
You can’t perform that action at this time.
0 commit comments