Skip to content

Commit

Permalink
fix #50 - support description and summary in path
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Sep 12, 2019
1 parent df060e4 commit 346a25c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/openapi.spec.loader.ts
Expand Up @@ -48,7 +48,7 @@ export class OpenApiSpecLoader {
const bp = bpa.replace(/\/$/, '');
for (const [path, methods] of Object.entries(apiDoc.paths)) {
for (const [method, schema] of Object.entries(methods)) {
if (method === 'parameters') {
if (['parameters', 'summary', 'description'].includes(method)) {
continue;
}
const schemaParameters = new Set();
Expand Down
2 changes: 2 additions & 0 deletions test/resources/openapi.yaml
Expand Up @@ -32,6 +32,8 @@ servers:
- v2
paths:
/pets:
description: endpoints for pets
summary: endpoints for pets
get:
description: |
Returns all pets from the system that the user has access to
Expand Down

0 comments on commit 346a25c

Please sign in to comment.