-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors while generating yaml #10
Comments
I have the same issue, why doesn't seem anyone fix that error |
Same here |
same here, also for json |
same here, but it worked until i used placeholder variables for requests in insomnia, so i guess it is caused by {{}} in the source file |
Same here: andreshg112@andreshg112-HP-240-G4-Notebook-PC:~/insomnia-exports$ swaggymnia generate -i sel-micro-video_2018-08-15.json -c config.json -o json
panic: assignment to entry in nil map
goroutine 1 [running]:
main.parse(0xc420012ae8, 0x6, 0x3, 0xed306492c, 0x2c588a00, 0x0, 0xc42000aee0, 0x1b, 0xc4200ec000, 0x17, ...)
C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/swagger.go:51 +0x32c
main.(*Swagger).Generate(0xc4200e17d8, 0x7ffe5186a218, 0x1f, 0x7ffe5186a23b, 0xb, 0x7ffe5186a24a, 0x4)
C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/swagger.go:83 +0x11f
main.main.func1(0xc420088840, 0x10100, 0xc420088840)
C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/app.go:57 +0x180
github.com/urfave/cli.HandleAction(0x5bd740, 0x608ba0, 0xc420088840, 0xc42006c300, 0x0)
C:/Users/Mohamed/go/src/github.com/urfave/cli/app.go:502 +0xd4
github.com/urfave/cli.Command.Run(0x5fb2c0, 0x8, 0x0, 0x0, 0xc420012890, 0x1, 0x1, 0x602cf6, 0x1e, 0x0, ...)
C:/Users/Mohamed/go/src/github.com/urfave/cli/command.go:210 +0xb87
github.com/urfave/cli.(*App).Run(0xc4200c21c0, 0xc42000e100, 0x8, 0x8, 0x0, 0x0)
C:/Users/Mohamed/go/src/github.com/urfave/cli/app.go:259 +0x7b7
main.main()
C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/app.go:66 +0x515
andreshg112@andreshg112-HP-240-G4-Notebook-PC:~/insomnia-exports$
|
Same here |
same here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
generate yaml
Current behavior
errors with fixed path to developers computer
Steps to reproduce the behavior
./swaggymnia generate -i pAPI.json -c config.json -o yaml
I'm running it on OSX and Linux (both specific releases for OSX and Linux) and i'm getting this:
The text was updated successfully, but these errors were encountered: