We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0337426 commit 066b2e7Copy full SHA for 066b2e7
Sources/JSONSchema.swift
@@ -68,6 +68,14 @@ func validator(for schema: [String: Any]) -> Validator {
68
return Draft4Validator(schema: schema)
69
}
70
71
+ if let id = DRAFT_2020_12_META_SCHEMA["$id"] as? String, schemaURI == id {
72
+ return Draft202012Validator(schema: schema)
73
+ }
74
+
75
+ if let id = DRAFT_2019_09_META_SCHEMA["$id"] as? String, schemaURI == id {
76
+ return Draft201909Validator(schema: schema)
77
78
79
if let id = DRAFT_07_META_SCHEMA["$id"] as? String, schemaURI == id {
80
return Draft7Validator(schema: schema)
81
0 commit comments