shlogg · Early preview
Nolan Miller @nmiller15

Why I Abandoned Swagger's Server For Custom Middleware

Swagger's auto-generated server lacks flexibility, I abandoned it after hitting a roadblock with custom middleware implementation.

This was the commit message typed into my console when I decided that fighting with Swagger just wasn’t worth it anymore.
If you’re here reading, welcome! I’ve been logging my progress (almost) daily on my new side-project Roast, an app to help me track my home roasts.
For the past couple of days, I’ve been singing the praises of Swagger and OpenAPI and the ability to automatically generate a server.

See Auto-Create an API Server Without AI
and Refactoring a Generated API

But, today, I finally ran into ceiling with it.

  
  
  Why I Chose to Abandon Swagger's Server

The reason is really ba...