quicktype-core 23.0.34 → 23.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -985,7 +985,7 @@ class JSONSchemaInput {
|
|
|
985
985
|
const refs = yield refsInSchemaForURI(resolver, normalizedURI, givenName);
|
|
986
986
|
if (Array.isArray(refs)) {
|
|
987
987
|
let name;
|
|
988
|
-
if (this._schemaSources.length === 1) {
|
|
988
|
+
if (this._schemaSources.length === 1 && givenName !== undefined) {
|
|
989
989
|
name = givenName;
|
|
990
990
|
}
|
|
991
991
|
else {
|