Comments (5)
This piece of file path checking in swagger.go:88
might cause the problem, might it need a full path instead of just ./swagger.json
?
// Verify Swagger file exists
if _, err := os.Stat(cfg.FilePath); os.IsNotExist(err) {
panic(fmt.Errorf("%s file does not exist", cfg.FilePath))
}
from contrib.
@fathoor Are you running both from the same folder? It works fine for me.
from contrib.
I can add filepath.abs()
before calling os.Stat()
. But i'm not getting an error when running the tests from the same folder the swagger.json
file is at.
Looking at the tests it tries both swagger.json
, ./swagger.json
from contrib.
Test was done from different folder but it seems that apparently I didn't provide a proper full path to where the swagger.json
file is at.
@gaby Problem is solved, test is working properly, and sorry for the invalid bug report.
I will close this issue as it is an invalid bug report, you may also label it as Invalid
, thank you!
from contrib.
@fathoor No problem, thanks!
from contrib.
Related Issues (20)
- π [Feature]: My (simple) SSEFiber Package HOT 1
- π€ [Question]: Could you mint a new release? HOT 3
- π€ [Question]: Not sure how the socket.io requests are being handled HOT 5
- π [Bug]: Websocket write tcp4 127.0.0.1:8001->127.0.0.1:59510: write: broken pipe HOT 3
- π€ [Question]: websocket.Conn.Locals vs fiber.Ctx.Locals signature difference
- π€ [Question]: How does socketio differentiate between TextMessage and BinaryMessage? HOT 4
- π [Feature]: JWT unsupport fiber v3 HOT 5
- π [Feature]: contrib/swagger.go exposes internal adresses. There should be a possibility to self-host
- π [Bug]: Otelfiber blocks stream writers HOT 1
- π€ [Question]: When use `fiberzap` with `WithContext`, caller maybe not show properly. How do I change itοΌ HOT 3
- π [Bug]: OTeL duplicate and wrong counter metrics are generated infinitely HOT 7
- π€ [Question]: Otelfiber - How to set span status to Error on panic?
- π [Feature]: otelfiber - Propergate tracing headers in outbound response HOT 6
- π€ [Question]: is it possible to get the file descriptor from fiber websocket? HOT 1
- π [Bug]: error occored when import github.com/gofiber/contrib/websocket HOT 7
- π [Feature]: Otelfiber allow for manual cancellation of c.UserContext() in otelfiber.Middleware() HOT 1
- π [Bug]: FiberSentry: GetHubFromContext() never returns nil
- π [Feature]: Add golangci-lint
- π€ [Question]: fiberzerolog the banner is not printed. HOT 1
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 contrib.