You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EXCLUSIVE_MAXIMUM("exclusiveMaximum", "1038", newMessageFormat("{0}: must have a exclusive maximum value of {1}"), ExclusiveMaximumValidator.class, 14), // V6|V7|V201909
126
+
EXCLUSIVE_MAXIMUM("exclusiveMaximum", "1038", newMessageFormat("{0}: must have a exclusive maximum value of {1}"), ExclusiveMaximumValidator.class, 14), // V6|V7|V201909|V202012
114
127
```
115
128
116
129
The getNonFormatKeywords method is updated to accept a SpecVersion.VersionFlag so that only the keywords supported by the specification will be loaded.
@@ -129,7 +142,7 @@ public static List<ValidatorTypeCode> getNonFormatKeywords(SpecVersion.VersionFl
129
142
130
143
#### JsonMetaSchema
131
144
132
-
We have created four different static classes V4, V6, V7, and V201909 to build different JsonMetaSchema instances.
145
+
We have created four different static classes V4, V6, V7, V201909and V202012 to build different JsonMetaSchema instances.
133
146
134
147
For the BUILDIN_FORMATS, there is a common section, and each staticclasshas its version-specific BUILDIN_FORMATS section.
135
148
@@ -144,21 +157,8 @@ public static JsonSchemaFactory getInstance() {
if (schemaUri.equals(JsonMetaSchema.getV4().getUri()))
182
185
return SpecVersion.VersionFlag.V4;
183
186
else if (schemaUri.equals(JsonMetaSchema.getV6().getUri()))
@@ -186,21 +189,24 @@ public static SpecVersion.VersionFlag detect(JsonNode jsonNode) {
186
189
return SpecVersion.VersionFlag.V7;
187
190
else if (schemaUri.equals(JsonMetaSchema.getV201909().getUri()))
188
191
return SpecVersion.VersionFlag.V201909;
192
+
else if (schemaUri.equals(JsonMetaSchema.getV202012().getUri()))
193
+
return SpecVersion.VersionFlag.V202012;
189
194
else
190
195
throw new JsonSchemaException("Unrecognizableschema");
191
196
}
192
197
```
193
198
194
199
### ForTesters
195
200
196
-
In the test resource folder, we have created and copied all draft version's test suite. They are located in draft4, draft6, draft7, and draft2019-09 folder.
201
+
In the test resource folder, we have created and copied all draft version's test suite. They are located in draft4, draft6, draft7, draft2019-09 and draft2020-12 folders.
197
202
198
203
The existing JsonSchemaTest has been renamed to V4JsonSchemaTest, and the following test classes are added.
199
204
200
205
```
201
206
V6JsonSchemaTest
202
207
V7JsonSchemaTest
203
208
V201909JsonSchemaTest
209
+
V202012JsonSchemaTest
204
210
```
205
211
206
212
These new test classes are not completed yet, and only some sample test cases are added.
0 commit comments