Coder Social home page Coder Social logo

Comments (5)

fathoor avatar fathoor commented on August 18, 2024

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.

gaby avatar gaby commented on August 18, 2024

@fathoor Are you running both from the same folder? It works fine for me.

from contrib.

gaby avatar gaby commented on August 18, 2024

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.

fathoor avatar fathoor commented on August 18, 2024

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.

gaby avatar gaby commented on August 18, 2024

@fathoor No problem, thanks!

from contrib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.