Comments (1)
Update:
I was able to resolve the problem by running swag fmt
and then swag init
again to rebuild the docs.
So in the end it was an error on my side - but I think more people might run into this because the issue was just me having too much whitespace in the annotations: see this commit in my sample repo.
To prevent this it would be good to:
a) Make the swaggo parser more resilient to additional whitespaces
b) Clearly document that swag fmt
is mandatory before generating the docs
c) Make swag fmt
automatically run on swag init
(maybe with a flag to disable it)
from echo-swagger.
Related Issues (20)
- Compilation problem:cannot use swaggerFiles.FS (variable of type fs.FS) as webdav.FileSystem value in struct literal HOT 2
- my functions are in other directory and swagger can't detect them
- oauth2-redirect.html with query parameters return 404 HOT 1
- Redirection error when using AddTrailingSlash middleware
- Expose OpenAPI in yml in a different endpoint HOT 3
- Add possibility description tag in dto struct HOT 1
- Update swagger ui version
- Use c.Response.Write() in EchoWrapHandler
- cannot change html title in swagger page HOT 1
- There are repeated slashes when jumping to index HOT 2
- Is it possible to create swagger-ui from a yaml file HOT 1
- Swagger Ui is loading after upgrading version 1.3.1 release HOT 3
- go version 1.18 Generics, swag init failed
- Latest swagger returns swagger-ui-bundle. version: 3.23.0 HOT 1
- How can I use routes that are defined outside the directory structure of main package? HOT 1
- Show document page when delete "docs/*" HOT 1
- Missing param on external dependency
- IncompatibleAssign Swagger HOT 1
- Add Proof Key for Code Exchange Support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from echo-swagger.