GithubHelp home page GithubHelp logo

go-swagger-starter's People

Contributors

epequeno-fr avatar jaredjensen avatar

Watchers

 avatar  avatar

Forkers

epequeno-fr

go-swagger-starter's Issues

Unable to start server using instructions provided

Starting from these instructions (from the README)

1. Copy this starter into the monorepo
2. Define the API spec in the /swagger folder
3. Run make generate to generate docs and server
4. Implement your endpoint handlers
5. Run a local server with make run_local to test

I copied this repo into a folder, made NO changes to the *.yaml files in ./swagger, then tried to run make generate and got the following error:

$ make generate
Installing swagger-merger
yarn global v1.22.10
[1/4] ๐Ÿ”  Resolving packages...
[2/4] ๐Ÿšš  Fetching packages...
[3/4] ๐Ÿ”—  Linking dependencies...
[4/4] ๐Ÿ”จ  Building fresh packages...

success Installed "[email protected]" with binaries:
      - swagger-merger
โœจ  Done in 1.90s.
Merging swagger specification files
Running validate_swagger
make: swagger: No such file or directory
make: *** [validate_swagger] Error 1

validate_swagger expected the docs_gen folder to exist but it doesn't seem like that was really a problem, just noting that maybe the repo should include that empty dir so the makefile doesn't error on this step.

But running the next step is where I'm getting an error I'm not sure how to handle

$ make run_local
Error from server (Forbidden): secrets "rsfilter-resource-server" is forbidden: User "[email protected]" cannot get resource "secrets" in API group "" in the namespace "fr-platform": requires one of ["container.secrets.get"] permission(s).
stat ./swagger_gen/cmd/main.go: no such file or directory
make: *** [run_local] Error 1

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.