UNPKG

@redocly/openapi-core

Version:

See https://github.com/Redocly/redocly-cli

21 lines 826 B
export const NoXSecuritySchemeNameInWorkflow = () => { return { Workflow: { enter(workflow, { report, location }) { const extendedSecurity = workflow?.['x-security']; if (!extendedSecurity) { return; } for (const security of extendedSecurity) { if ('schemeName' in security) { report({ message: "The `schemeName` can't be used in Workflow, please use `scheme` instead.", location: location.child(['x-security', extendedSecurity.indexOf(security)]), }); } } }, }, }; }; //# sourceMappingURL=no-x-security-scheme-name-in-workflow.js.map