diff --git a/libraries/hermes/src/GraphQl/GraphQlParser.ts b/libraries/hermes/src/GraphQl/GraphQlParser.ts index 07c9205ee..e3f3a356c 100644 --- a/libraries/hermes/src/GraphQl/GraphQlParser.ts +++ b/libraries/hermes/src/GraphQl/GraphQlParser.ts @@ -163,6 +163,7 @@ export class GraphQlParser extends ConduitParser isArray: boolean, ): void { this.addToRelation(this.result, value); + this.requestedTypes.add(value); this.constructResolver(resolverName, name, true); processingObject.typeString += name + diff --git a/libraries/hermes/src/Rest/SwaggerParser.ts b/libraries/hermes/src/Rest/SwaggerParser.ts index ac5fb6209..2ac821880 100644 --- a/libraries/hermes/src/Rest/SwaggerParser.ts +++ b/libraries/hermes/src/Rest/SwaggerParser.ts @@ -187,6 +187,7 @@ export class SwaggerParser extends ConduitParser format: 'uuid', }; } else { + this.requestedTypes.add(value); processingObject.properties[name] = { oneOf: [ {