From 057828a5b79b8c4dd4b989bd3d4ed2b5610a8aed Mon Sep 17 00:00:00 2001 From: Konstantinos Feretos Date: Wed, 20 Sep 2023 12:58:55 +0300 Subject: [PATCH] fix(hermes): swagger/graphql parsers not pulling related db schema types (#687) --- libraries/hermes/src/GraphQl/GraphQlParser.ts | 1 + libraries/hermes/src/Rest/SwaggerParser.ts | 1 + 2 files changed, 2 insertions(+) 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: [ {