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
Copy file name to clipboardExpand all lines: doc/validators.md
+67Lines changed: 67 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,3 +13,70 @@ If `if` is valid, `then` must also be valid (and `else` is ignored.) If `if` is
13
13
14
14
For usage, please refer to the test cases at https://github.com/networknt/json-schema-validator/blob/master/src/test/resources/draft7/if-then-else.json
15
15
16
+
### Custom Validators
17
+
````
18
+
@Bean
19
+
public JsonSchemaFactory mySchemaFactory() {
20
+
// base on JsonMetaSchema.V201909 copy code below
21
+
String URI = "https://json-schema.org/draft/2019-09/schema";
22
+
String ID = "$id";
23
+
List<Format> BUILTIN_FORMATS = new ArrayList<Format>(JsonMetaSchema.COMMON_BUILTIN_FORMATS);
24
+
25
+
JsonMetaSchema myJsonMetaSchema = new JsonMetaSchema.Builder(URI)
0 commit comments