Enhancement — Add asyncapi-operation-security-defined rule for AsyncAPI security scheme cross-references
Problem
The AsyncAPI rule set has only structural rules (channels-kebab-case, no-channel-trailing-slash). There is no rule validating that security scheme names in AsyncAPI operation/server security arrays are defined in components/securitySchemes. Name mismatches are silently invalid.
Proposed Rule
rules:
asyncapi-operation-security-defined: error
Analogous to the missing operation-security-defined rule for OpenAPI — traverses AsyncAPI operation and server security arrays and validates each referenced scheme exists in components/securitySchemes.
Labels
Type: Enhancement, p3