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 17bd2d8 commit c723e18Copy full SHA for c723e18
index.js
@@ -111,9 +111,15 @@ function build (schema, options) {
111
}
112
113
if (refResolver.getSchema(schemaKey) === undefined) {
114
- ajvInstance.addSchema(externalSchema, schemaKey)
115
refResolver.addSchema(externalSchema, key)
116
+
117
+ if (
118
+ ajvInstance.refs[schemaKey] === undefined &&
119
+ ajvInstance.schemas[schemaKey] === undefined
120
+ ) {
121
+ ajvInstance.addSchema(externalSchema, schemaKey)
122
+ }
123
124
125
0 commit comments