We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f649c4 commit ea34064Copy full SHA for ea34064
src/model/api/openapi.ts
@@ -449,9 +449,11 @@ class OpenApiResponse implements ApiResponse {
449
)
450
: undefined;
451
452
- this.description = bodySpec && bodySpec.description !== response.statusMessage
453
- ? fromMarkdown(bodySpec.description, { linkify: true })
454
- : undefined;
+ this.description = bodySpec?.description &&
+ bodySpec.description !== response.statusMessage && // Ignore description "Not Found" and similar
+ bodySpec.description.split(' ').filter(Boolean).length! > 2 // Ignore pointlessly short (Response/Error Response) descriptions
455
+ ? fromMarkdown(bodySpec.description, { linkify: true })
456
+ : undefined;
457
this.bodySchema = getBodySchema(spec, bodySpec, response);
458
}
459
0 commit comments