Skip to content

Commit 91b4fdf

Browse files
authored
feat: update transformer
feat: update transformer
2 parents d944af4 + 098e6d6 commit 91b4fdf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/generators-v2/src/transformer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ export function transformSchema(schema, options) {
5050
codeSample = codeSamples.customSample(options);
5151
}
5252

53+
// Remove /responses path because it's not needed (too large file)
54+
if (updatedSchema.paths?.['/responses']) {
55+
delete updatedSchema.paths['/responses'];
56+
}
57+
5358
Object.entries(updatedSchema.paths).map(([path, operation]) => {
5459
if (operation.post) {
5560
if (codeSample) {

0 commit comments

Comments
 (0)