Spectral has a built-in AsyncAPI v2 and v3 ruleset that you can use to validate your AsyncAPI files.
Add extends: "spectral:asyncapi" to your ruleset file to apply rules for AsyncAPI v2 and v3.
You can see a full list of the rules in this ruleset in AsyncAPI Rules.
Last updated Oct 24, 2026