openapi-explorer 2.1.651 → 2.1.654
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -374,10 +374,12 @@ function getTypeDisplayHeader(securityScheme) {
|
|
374
374
|
return securityScheme.type;
|
375
375
|
}
|
376
376
|
|
377
|
-
export function pathSecurityTemplate(
|
378
|
-
|
377
|
+
export function pathSecurityTemplate(pathSecurityOptions) {
|
378
|
+
const requiredSecurityOptions = (pathSecurityOptions === null || pathSecurityOptions === void 0 ? void 0 : pathSecurityOptions.filter(o => o && Object.keys(o).length)) || [];
|
379
|
+
|
380
|
+
if (this.resolvedSpec.securitySchemes && requiredSecurityOptions.length) {
|
379
381
|
const orSecurityKeys1 = [];
|
380
|
-
|
382
|
+
requiredSecurityOptions.forEach(pSecurity => {
|
381
383
|
const andSecurityKeys1 = [];
|
382
384
|
const andKeyTypes = [];
|
383
385
|
Object.keys(pSecurity).forEach(pathSecurityKey => {
|
@@ -387,10 +387,12 @@ function getTypeDisplayHeader(securityScheme) {
|
|
387
387
|
return securityScheme.type;
|
388
388
|
}
|
389
389
|
|
390
|
-
function pathSecurityTemplate(
|
391
|
-
|
390
|
+
function pathSecurityTemplate(pathSecurityOptions) {
|
391
|
+
const requiredSecurityOptions = (pathSecurityOptions === null || pathSecurityOptions === void 0 ? void 0 : pathSecurityOptions.filter(o => o && Object.keys(o).length)) || [];
|
392
|
+
|
393
|
+
if (this.resolvedSpec.securitySchemes && requiredSecurityOptions.length) {
|
392
394
|
const orSecurityKeys1 = [];
|
393
|
-
|
395
|
+
requiredSecurityOptions.forEach(pSecurity => {
|
394
396
|
const andSecurityKeys1 = [];
|
395
397
|
const andKeyTypes = [];
|
396
398
|
Object.keys(pSecurity).forEach(pathSecurityKey => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "openapi-explorer",
|
3
|
-
"version": "2.1.
|
3
|
+
"version": "2.1.654",
|
4
4
|
"description": "OpenAPI Explorer - API viewer with dynamically generated components, documentation, and interaction console",
|
5
5
|
"author": "Authress Developers <developers@authress.io>",
|
6
6
|
"type": "module",
|