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() {
195195 return new Version201909 ().getInstance ();
196196 }
197197
198+ public static JsonMetaSchema getV202012 () {
199+ return new Version202012 ().getInstance ();
200+ }
201+
198202 /**
199203 * Builder without keywords or formats.
200204 * <p>
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ else if (schemaUri.equals(JsonMetaSchema.getV7().getUri()))
5151 return SpecVersion .VersionFlag .V7 ;
5252 else if (schemaUri .equals (JsonMetaSchema .getV201909 ().getUri ()))
5353 return SpecVersion .VersionFlag .V201909 ;
54+ else if (schemaUri .equals (JsonMetaSchema .getV202012 ().getUri ()))
55+ return SpecVersion .VersionFlag .V202012 ;
5456 else
5557 throw new JsonSchemaException ("Unrecognizable schema" );
5658 }
You can’t perform that action at this time.
0 commit comments