quicktype-core 23.0.34 → 23.0.35

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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quicktype-core",
3
- "version": "23.0.34",
3
+ "version": "23.0.35",
4
4
  "description": "The quicktype engine as a library",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",