Menu

Still on Swagger 2.0? Catch breaking changes without migrating first
📰

Still on Swagger 2.0? Catch breaking changes without migrating first

DEV Community: dotnet·Graphwake·10 days ago
#Beuzh7mf
#devtodotnet#devto#dev#swagger#spec
Long article (1183 words) — no AI summary yet.
Reading 0:00
15s threshold

Somewhere in your company there is a service that still publishes Swagger 2.0. Maybe it's an ASP.NET Core API that set Swashbuckle to 2.0 years ago for an old client. Maybe it's a Spring service on Springfox, or a Go service documented with swag. It works, nobody wants to touch it, and moving it to OpenAPI 3 sits somewhere near the bottom of the backlog.

That's fine. A 2.0 spec describes the API just as well, and you can catch the changes in it that break other teams without migrating anything first.

We build Graphwake , which tells the teams that consume an API when a change in its spec is about to break them. Graphwake doesn't read your code; it works only from the spec and from the endpoints each team subscribes to. Since this week it takes Swagger 2.0 as it is. This post covers where breaking changes hide in a 2.0 spec, how to get the file out of your build, and what you see once it's connected.

Why so many services are still on 2.0

Usually nobody chose it.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.