@mintlify/validation
Advanced tools
Comparing version
@@ -36,3 +36,5 @@ import { BaseConverter } from './BaseConverter.js'; | ||
var _a, _b, _c, _d, _e; | ||
const securityRequirements = (_a = this.operationObject.security) !== null && _a !== void 0 ? _a : this.document.security; | ||
const securityRequirements = this.location.type === 'webhook' | ||
? this.operationObject.security | ||
: (_a = this.operationObject.security) !== null && _a !== void 0 ? _a : this.document.security; | ||
const securitySchemes = (_b = this.document.components) === null || _b === void 0 ? void 0 : _b.securitySchemes; | ||
@@ -39,0 +41,0 @@ const security = SecurityConverter.convert(securityRequirements, securitySchemes, this.safeParse); |
{ | ||
"name": "@mintlify/validation", | ||
"version": "0.1.319", | ||
"version": "0.1.320", | ||
"description": "Validates mint.json files", | ||
@@ -63,3 +63,3 @@ "author": "Mintlify, Inc.", | ||
}, | ||
"gitHead": "91b1ad77e247ce15bf5bedb3aff30b2e6059bd89" | ||
"gitHead": "cc2c1c610c9e5e8136285b7712382d15fe7adee8" | ||
} |
Sorry, the diff of this file is not supported yet
1330332
0.01%30991
0.01%