Skip to content

Commit

Permalink
feat: Disable refs in the generated Yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
devoto13 committed Nov 8, 2023
1 parent 2034bb5 commit 2fafb80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/swagger-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ export class SwaggerModule {
: document;

const yamlDocument = jsyaml.dump(documentToSerialize, {
skipInvalid: true
skipInvalid: true,
noRefs: true
});
res.send(yamlDocument);
});
Expand Down

0 comments on commit 2fafb80

Please sign in to comment.