File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
src/main/java/com/networknt/schema Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,10 @@ public static JsonMetaSchema getV201909() {
195
195
return new Version201909 ().getInstance ();
196
196
}
197
197
198
+ public static JsonMetaSchema getV202012 () {
199
+ return new Version202012 ().getInstance ();
200
+ }
201
+
198
202
/**
199
203
* Builder without keywords or formats.
200
204
* <p>
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ else if (schemaUri.equals(JsonMetaSchema.getV7().getUri()))
51
51
return SpecVersion .VersionFlag .V7 ;
52
52
else if (schemaUri .equals (JsonMetaSchema .getV201909 ().getUri ()))
53
53
return SpecVersion .VersionFlag .V201909 ;
54
+ else if (schemaUri .equals (JsonMetaSchema .getV202012 ().getUri ()))
55
+ return SpecVersion .VersionFlag .V202012 ;
54
56
else
55
57
throw new JsonSchemaException ("Unrecognizable schema" );
56
58
}
You can’t perform that action at this time.
0 commit comments