File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
main/java/com/networknt/schema
test/java/com/networknt/schema Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,14 @@ static Builder builder() {
188
188
return new Builder ();
189
189
}
190
190
191
+ /**
192
+ * @deprecated
193
+ * This is a method that is kept to ensure backward compatible. You shouldn't use it anymore.
194
+ * Please specify the draft version when get an instance.
195
+ *
196
+ * @return JsonSchemaFactory
197
+ */
198
+ @ Deprecated
191
199
public static JsonSchemaFactory getInstance () {
192
200
return getInstance (SpecVersion .VersionFlag .V4 );
193
201
}
Original file line number Diff line number Diff line change 39
39
40
40
public class V4JsonSchemaTest {
41
41
protected ObjectMapper mapper = new ObjectMapper ();
42
- protected JsonSchemaFactory validatorFactory = JsonSchemaFactory .builder (JsonSchemaFactory .getInstance ()).objectMapper (mapper ).build ();
42
+ protected JsonSchemaFactory validatorFactory = JsonSchemaFactory .builder (JsonSchemaFactory .getInstance (SpecVersion . VersionFlag . V4 )).objectMapper (mapper ).build ();
43
43
protected static Undertow server = null ;
44
44
45
45
public V4JsonSchemaTest () {
You can’t perform that action at this time.
0 commit comments