Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

Best API Linting Tools: 9 Spec Checkers, From CLIs to Platforms

Spectral, Vacuum and Redocly CLI are the free command-line linters I'd shortlist first; Zally suits teams happy to run a small server. To catch breaking changes between two versions of a spec, look at oasdiff or Bump.sh. Stoplight and SwaggerHub put style guides inside a paid design platform, and 42Crunch audits the OpenAPI contract for security.

Nothing on this page comes from running the tools. I read each vendor's homepage, pricing page or documentation in December 2026 and built the entries and the table from that text alone. No spec was linted for this page, so treat the entries as summaries of what vendors publish. Five other names I looked at were left out: one service has shut down, one site wouldn't load, and three pages said nothing checkable about linting.

API linting sounds like one job, but the nine tools here split into four kinds. Some check a single spec file against style rules. Some compare two versions of a spec and flag what would break a client. Two wrap style guides inside a wider design platform, and one treats the contract as a security question.

Nine API linters and spec checkers, grouped by job

Spectral

Built with OpenAPI, AsyncAPI and JSON Schema in mind, Spectral ships default rulesets you can extend or replace, and it comes as a CLI binary or an NPM package with a JavaScript API. Skip it if you want a hosted web dashboard.

Vacuum

Written in Go, Vacuum lints OpenAPI, AsyncAPI and JSON Schema, and its docs list OWASP rules, custom rulesets, a VSCode plugin and a GitHub Action. Skip it if you need a commercial vendor behind it, since the site points to GitHub and Discord.

Redocly CLI

Redocly's open-source CLI lets you pick a built-in ruleset, adjust any rule and add custom ones, and it reads OpenAPI, AsyncAPI, Arazzo and GraphQL among others. Skip it if npm, Homebrew and Docker are all off limits on your build machines.

Zally

Zalando's Zally checks OpenAPI 3 and Swagger 2 specs through a CLI, a REST API and a web interface, and new checks are written in Java or Kotlin. Skip it if you'd rather not run a server and database, because the CLI calls the server.

oasdiff

Rather than linting one file, oasdiff compares two OpenAPI specs and calls a change breaking when a previously valid request can now be rejected. Its CLI and GitHub Action are free forever. Skip it if style and naming rules are what you need.

Bump.sh

Bump.sh is an API doc platform for OpenAPI and AsyncAPI that diffs each change and previews it on pull requests, with an automated changelog and versioning. Skip it if you don't publish API documentation, since the diffing sits inside its doc portal.

Stoplight

Stoplight bakes Spectral into a design, docs and mock-server platform, and its pricing page lists shared style guides on the plan with the first 15 users free. Skip it if a linter is all you want and a design platform is surplus.

SwaggerHub

SmartBear's commercial platform applies style guides and governance rules to API definitions automatically, runs as SaaS or self-managed on Kubernetes, and has an MCP Server for AI assistants. Skip it if your budget stops at a free download.

42Crunch

With 42Crunch, API Audit is the static half: it tests the OpenAPI contract before any implementation exists, and policies apply in CI/CD. The rest of the platform covers runtime and MCP security. Skip it if you need to see a price before a conversation.

Checked facts from the nine vendor pages

Each cell comes from the raw text of that vendor's page. Not published means I searched the page for the point and didn't find it.

ToolWhat it checksFormats namedHow it runsFree route on the page
SpectralRulesets on one specOpenAPI, AsyncAPI, JSON SchemaCLI binary, NPM package, JavaScript APIOpen source
VacuumRulesets on one spec, OWASP rulesOpenAPI, AsyncAPI, JSON Schema, ArazzoCLI, VSCode plugin, GitHub ActionNot published
Redocly CLIBuilt-in or custom rulesetsOpenAPI 2.0 to 3.2, AsyncAPI, Arazzo, GraphQL and morenpm, brew or Docker; VS Code extension; CIOpen-source CLI, no account needed
ZallyConfigurable checks on one specOpenAPI 3 and Swagger 2CLI using a server, REST API, web UIMIT licence with an exception, on GitHub
oasdiffBreaking changes between two specsOpenAPICLI, GitHub ActionCLI and GitHub Action free forever
Bump.shDiff and preview of each changeOpenAPI, AsyncAPIDoc portal, CLI, GitHub Action14-day free trial
StoplightStyle guides inside a design platformOpenAPI, JSON SchemaDesign, docs and mock-server platform14-day free trial
SwaggerHubStyle guides and governance rulesOpenAPI, AsyncAPI, GraphQL, gRPC, MCP, A2ASaaS or self-managed on KubernetesFree trial
42CrunchSecurity audit of the OpenAPI contractOpenAPI, GraphQLCI/CD and runtimeFree trial

Two things in the table matter when you're shortlisting. Four tools, the open-source and free-forever rows in the last column, give you a free command-line route with no trial clock. And two rows, the breaking-change checker and the doc platform, compare versions rather than judge one file, which is a different job from style linting.

Work with me

Want AI doing the heavy lifting in your marketing?

I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.

Do you make API linting tools? Tool makers can ask to be considered for a featured place on this list.

Which one fits: choosing by what you need to catch

You want consistent naming and structure across specs. This is classic linting: one spec in, a list of rule breaks out. The four command-line linters in the first group all do it, and the clearest difference is how you write rules. Two extend a ruleset file, one keeps rules and overrides in a single config file, and one expects new checks in Java or Kotlin. Pick the one whose rule format your team can maintain without a specialist, because a style guide nobody can edit goes stale fast.

You need the same rules on a laptop and in CI. A linter earns its keep when it fails a pull request before a bad spec merges. Check that the tool has an editor extension for early feedback and a CI step for enforcement. Three tools in the table list a GitHub Action, and the editor extensions sit in the same column. Whatever you choose, run it locally first so developers aren't surprised by a red build.

You're scared of breaking clients more than of messy naming. A spec can pass every style rule and still remove a field a mobile app depends on. That's a diff problem, not a lint problem. A breaking-change checker compares the old and new spec and blocks the merge if a request that worked before would now fail. If you publish docs to customers, a doc platform with diffs built in covers the same ground from the documentation side.

Several teams design APIs and someone has to govern them. Once ten teams write specs, a shared style guide in a central platform saves a lot of copying rulesets between repos. The two design platforms here put style guides next to visual editing, mock servers and docs. They're paid, both offer a trial, and they make sense when you'd buy the design tooling anyway. If governance at the gateway is the bigger concern, my comparison of API management platforms covers that layer.

Security reviewers want the contract checked before code exists. A security audit tests the OpenAPI contract itself, before any implementation exists, for security problems rather than style. The security vendor here quotes plans per organisation, so budget time for a sales call. Pair it with a style linter rather than replacing one.

Where API linting goes off the rails

  • Switching on a full ruleset on day one. Hundreds of warnings on an existing spec teach people to ignore the linter. Start with errors only on new or changed operations, then tighten the rules as the backlog shrinks.
  • Rules nobody owns. A custom ruleset is code. If nobody reviews changes to it, rules drift away from the style guide they were meant to enforce. Keep the ruleset in Git with a named owner.
  • Treating lint as a breaking-change check. Style linters judge one file at a time. If the pipeline only lints, a removed field or a newly required parameter can still ship. Add a diff step if clients depend on your API.
  • Ignore comments everywhere. Tools let you silence a rule on one operation, and one linter here has its own extension for it. A spec full of ignores is a sign the rule is wrong or the team has given up on it. Count them each quarter.
  • Format gaps found late. If you use AsyncAPI, Arazzo or GraphQL alongside OpenAPI, check the formats column before you commit. Five of the 9 name AsyncAPI on their page; the other four don't.
  • Trial clocks running out mid-evaluation. Four tools in the table name a free trial as their free route. Line up a real spec and a real pipeline before you start the trial, not after.

Want your tool on this list? Featured spots and reviews here are paid partnerships. Here's how to partner with me.

Frequently asked questions

What is API linting?

It's an automated check of an API description file, such as an OpenAPI or AsyncAPI spec, against a set of rules covering naming, structure, required fields and documentation. It catches style and consistency problems before the API is built or published. None of the nine here was run for this page.

Do I need a paid tool to lint an API spec?

No. Four tools in my table offer a free command-line route through an open-source licence or a free-forever tier. Paid platforms add shared style guides, design tooling and approval workflows on top.

What's the difference between API linting and breaking-change detection?

Linting judges one spec against style rules. Breaking-change detection compares two versions of a spec and flags changes that would stop an existing client working, such as a removed field. In my table, 2 of the 9 tools are built for the second job.

Can I lint AsyncAPI as well as OpenAPI?

Yes. Five of the 9 tools on this page name AsyncAPI support on their own pages, including three of the command-line linters. Check the formats column in the table for the exact list.

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.