Skip to content

Commit b6eec57

Browse files
authored
Restore request descriptions fallback to json-rest-spec (#2628)
1 parent b42e84d commit b6eec57

File tree

2 files changed

+152
-0
lines changed

2 files changed

+152
-0
lines changed

compiler/src/steps/add-description.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ export default async function addDescription (model: model.Model, jsonSpec: Map<
5454
}
5555
}
5656

57+
if (spec.documentation.description != null) {
58+
requestDefinition.description = requestDefinition.description ?? spec.documentation.description
59+
}
60+
5761
// An API endpoint is defined by an endpoint object (paths and http methods) and a request
5862
// type (parameters and structure).
5963
endpoint.description = requestDefinition.description ?? spec.documentation.description

0 commit comments

Comments
 (0)