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>
{scheme.apiKey ? (
<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>
</tr>
) : scheme.http ? (
@ -93,8 +98,7 @@ export class SecurityDefs extends React.PureComponent<SecurityDefsProps> {
<th> HTTP Authorization Scheme </th>
<td> {scheme.http.scheme} </td>
</tr>,
scheme.http.scheme === 'bearer' &&
scheme.http.bearerFormat && (
scheme.http.scheme === 'bearer' && scheme.http.bearerFormat && (
<tr key="bearer">
<th> Bearer format </th>
<td> "{scheme.http.bearerFormat}" </td>