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 2c3f50e commit 4d43ddfCopy full SHA for 4d43ddf
src/index.ts
@@ -30,6 +30,12 @@ class Ajv extends AjvCore {
30
: draft4MetaSchema
31
this.addMetaSchema(metaSchema, META_SCHEMA_ID, false)
32
this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID
33
+
34
+ // Add a copy of the schema for HTTPS references:
35
+ const httpsId = META_SCHEMA_ID.replace(/^http:/, "https:")
36
+ const httpsSchema = JSON.parse(JSON.stringify(metaSchema)) as AnySchemaObject
37
+ httpsSchema.id = httpsSchema.$schema = httpsId + "#"
38
+ this.addMetaSchema(httpsSchema, httpsId, false)
39
}
40
41
defaultMeta(): string | AnySchemaObject | undefined {
0 commit comments