mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 14:14: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>
|
</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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user