mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 06:04:56 +03:00
fix: update apiKey in to be titleize
This commit is contained in:
parent
5dd5d6d704
commit
9ebd0b4580
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user