@redocly/respect-core
Version:
API testing framework core
16 lines • 543 B
JavaScript
export function generateWorkflowSecurityInputs(inputsComponents, security) {
if (!security?.length) {
return undefined;
}
for (const securityRequirement of security) {
for (const securityName of Object.keys(securityRequirement)) {
if (inputsComponents?.inputs?.[securityName]) {
return {
$ref: `#/components/inputs/${securityName}`,
};
}
}
}
return undefined;
}
//# sourceMappingURL=generate-workflow-security-inputs.js.map