Skip to content

Commit 0ee4cbf

Browse files
mingchunoxuyumeng
andauthored
Add exportType option (#2)
* Add exportType option Add exportType option and allow specify OpenAPI 3.0 * add "swagger" as default exportType add "swagger" as default exportType to pass the test Co-authored-by: Yumeng Xu <xusmailbox@gmail.com>
1 parent 373985b commit 0ee4cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/downloadDocumentation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
return aws.request('APIGateway', 'getExport', {
99
stageName: aws.getStage(),
1010
restApiId: restApiId,
11-
exportType: 'swagger',
11+
exportType: this.options.exportType? this.options.exportType: 'swagger',
1212
parameters: {
1313
extensions: extensionType(this.options.extensions),
1414
},

0 commit comments

Comments
 (0)