fix: update apiKey in to be titleize

This commit is contained in:
Cédric Fabianski 2019-04-30 11:45:51 +02:00
parent 5dd5d6d704
commit 9ebd0b4580
No known key found for this signature in database
GPG Key ID: 189A0D6C64F9E873

View File

@ -84,7 +84,12 @@ export class SecurityDefs extends React.PureComponent<SecurityDefsProps> {
</tr> </tr>
{scheme.apiKey ? ( {scheme.apiKey ? (
<tr> <tr>
<th> {scheme.apiKey.in} parameter name:</th> <th>
{' '}
{(scheme.apiKey.in || '').charAt(0).toUpperCase() +
(scheme.apiKey.in || '').slice(1)}{' '}
parameter name:
</th>
<td> {scheme.apiKey.name} </td> <td> {scheme.apiKey.name} </td>
</tr> </tr>
) : scheme.http ? ( ) : scheme.http ? (
@ -93,13 +98,12 @@ export class SecurityDefs extends React.PureComponent<SecurityDefsProps> {
<th> HTTP Authorization Scheme </th> <th> HTTP Authorization Scheme </th>
<td> {scheme.http.scheme} </td> <td> {scheme.http.scheme} </td>
</tr>, </tr>,
scheme.http.scheme === 'bearer' && scheme.http.scheme === 'bearer' && scheme.http.bearerFormat && (
scheme.http.bearerFormat && ( <tr key="bearer">
<tr key="bearer"> <th> Bearer format </th>
<th> Bearer format </th> <td> "{scheme.http.bearerFormat}" </td>
<td> "{scheme.http.bearerFormat}" </td> </tr>
</tr> ),
),
] ]
) : scheme.openId ? ( ) : scheme.openId ? (
<tr> <tr>