Skip to content

Commit f11b84a

Browse files
committed
Added option to set preferred request body content-type
1 parent c2be837 commit f11b84a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ module.exports = {
392392
id: 'preferredRequestBodyType',
393393
type: 'enum',
394394
default: 'x-www-form-urlencoded',
395-
availableOptions: ['x-www-form-urlencoded', 'form-data', 'Raw'],
395+
availableOptions: ['x-www-form-urlencoded', 'form-data', 'raw'],
396396
description: 'When there are multiple content-types defined in the request body of OpenAPI, select the ' +
397397
'preferred option content-type as request body.',
398398
external: true,

test/system/structure.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ const optionIds = [
237237
name: 'Select request body type',
238238
type: 'enum',
239239
default: 'x-www-form-urlencoded',
240-
availableOptions: ['x-www-form-urlencoded', 'form-data', 'Raw'],
240+
availableOptions: ['x-www-form-urlencoded', 'form-data', 'raw'],
241241
description: 'When there are multiple content-types defined in the request body of OpenAPI, select the ' +
242242
'preferred option content-type as request body.',
243243
external: true,

0 commit comments

Comments
 (0)