Closed rogeriopradoj closed 6 years ago
it has been fixed :) https://github.com/mlabouardy/swaggymnia/commit/8a623b49cc4b4508ff0714bc451a21fc36479f46
thank you for your feedback
@mlabouardy my pleasure ;-)
It does not work at all. Whatever I do shows this panic: assignment to entry in nil map
goroutine 1 [running]: main.parse(0xc420012b80, 0x6, 0x3, 0xed21616c2, 0x2756cd00, 0x0, 0xc42000b020, 0x1c, 0xc42011c000, 0xa, ...) C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/swagger.go:51 +0x32c main.(Swagger).Generate(0xc4201197d8, 0x7ffca03811e1, 0x1d, 0x7ffca0381202, 0x9, 0x5f8620, 0x4) C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/swagger.go:83 +0x11f main.main.func1(0xc420088840, 0x100, 0xc420088840) C:/Users/Mohamed/go/src/github.com/mlabouardy/swaggymnia/app.go:57 +0x180 github.com/urfave/cli.HandleAction(0x5bd740, 0x608ba0, 0xc420088840, 0xc42000e400, 0x0) C:/Users/Mohamed/go/src/github.com/urfave/cli/app.go:502 +0xd4 github.com/urfave/cli.Command.Run(0x5fb2c0, 0x8, 0x0, 0x0, 0xc4200128e0, 0x1, 0x1, 0x602cf6, 0x1e, 0x0, ...) C:/Users/Mohamed/go/src/github.com/urfave/cli/command.go:210 +0xb87 github.com/urfave/cli.(App).Run(0xc4200c41c0, 0xc42000e0c0, 0x6, 0x6, 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 No solution online...
Expected behavior
Should respect config file about scheme definition. If we define "http" as scheme, swaggymnia should generate file as "http".
Current behavior
swaggymnia is generating file as "https" doesn't matter if we setup config with "http"
Steps to reproduce the behavior
CONFIG.json is: