Skip to content

Commit 13e8365

Browse files
committed
Modifying the placeholder names to camelCase format
1 parent fa1e10a commit 13e8365

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/schemaUtils.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,23 +1082,23 @@ module.exports = {
10821082
helper = {
10831083
type: 'basic',
10841084
basic: [
1085-
{ key: 'username', value: '{{basic_auth_username}}' },
1086-
{ key: 'password', value: '{{basic_auth_password}}' }
1085+
{ key: 'username', value: '{{basicAuthUsername}}' },
1086+
{ key: 'password', value: '{{basicAuthPassword}}' }
10871087
]
10881088
};
10891089
}
10901090
else if (_.toLower(securityDef.scheme) === 'bearer') {
10911091
helper = {
10921092
type: 'bearer',
1093-
bearer: [{ key: 'token', value: '{{bearer_token}}' }]
1093+
bearer: [{ key: 'token', value: '{{bearerToken}}' }]
10941094
};
10951095
}
10961096
else if (_.toLower(securityDef.scheme) === 'digest') {
10971097
helper = {
10981098
type: 'digest',
10991099
digest: [
1100-
{ key: 'username', value: '{{digest_auth_username}}' },
1101-
{ key: 'password', value: '{{digest_auth_password}}' },
1100+
{ key: 'username', value: '{{digestAuthUsername}}' },
1101+
{ key: 'password', value: '{{digestAuthPassword}}' },
11021102
{ key: 'realm', value: '{{realm}}' }
11031103
]
11041104
};
@@ -1107,8 +1107,8 @@ module.exports = {
11071107
helper = {
11081108
type: 'oauth1',
11091109
oauth1: [
1110-
{ key: 'consumerSecret', value: '{{consumer_secret}}' },
1111-
{ key: 'consumerKey', value: '{{consumer_key}}' },
1110+
{ key: 'consumerSecret', value: '{{consumerSecret}}' },
1111+
{ key: 'consumerKey', value: '{{consumerKey}}' },
11121112
{ key: 'addParamsToHeader', value: true }
11131113
]
11141114
};
@@ -1197,9 +1197,9 @@ module.exports = {
11971197
apikey: [
11981198
{
11991199
key: 'key',
1200-
value: _.isString(securityDef.name) ? securityDef.name : '{{api_key_name}}'
1200+
value: _.isString(securityDef.name) ? securityDef.name : '{{apiKeyName}}'
12011201
},
1202-
{ key: 'value', value: '{{api_key}}' },
1202+
{ key: 'value', value: '{{apiKey}}' },
12031203
{
12041204
key: 'in',
12051205
value: _.includes(['query', 'header'], securityDef.in) ? securityDef.in : 'header'

0 commit comments

Comments
 (0)