Showing results for 
Search instead for 
Did you mean: 

Go Generating Server and Open API


Go Generating Server and Open API



I'm discovering Swagger and doing some tests to see if we can use it to speed up our development API. For the moment, I used the swagger editor online ( to design my endpoints and my authentification scheme by following Open API 3 convention. But when I'm trying to generate the server backbone code with bearer token authentification, there is no trace of any middleware or bearer authentification.

When I tried with Python-Flaskn the code generated handled correctly the bearer authentifcation.

Have I done something bad in goland ? Should I write the middleware structure by myself ? Did I missunderstand something ?


Thank for reading. 



Re: Go Generating Server and Open API

Hello, some generators have features implemented and others don't. This could be a case. or, it could be implemented in a different way you might expect.


You could open a ticket on to report this as an issue or even creates a PR proposing a solution if you will.

New Here?
Join us and watch the welcome video: