Skip to content

Commit

Permalink
fix(hermes): swagger/graphql parsers not pulling related db schema ty…
Browse files Browse the repository at this point in the history
…pes (#687)
  • Loading branch information
kon14 authored Sep 20, 2023
1 parent 47732b1 commit 057828a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libraries/hermes/src/GraphQl/GraphQlParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export class GraphQlParser extends ConduitParser<ParseResult, ProcessingObject>
isArray: boolean,
): void {
this.addToRelation(this.result, value);
this.requestedTypes.add(value);
this.constructResolver(resolverName, name, true);
processingObject.typeString +=
name +
Expand Down
1 change: 1 addition & 0 deletions libraries/hermes/src/Rest/SwaggerParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export class SwaggerParser extends ConduitParser<ParseResult, ProcessingObject>
format: 'uuid',
};
} else {
this.requestedTypes.add(value);
processingObject.properties[name] = {
oneOf: [
{
Expand Down

0 comments on commit 057828a

Please sign in to comment.