Skip to content

Commit

Permalink
fix: swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Jan 12, 2023
1 parent 6b1bfb7 commit 04fada7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/app/api/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func HTTPModule(serviceInfo api.ServiceInfo) fx.Option {
})
}),
fx.Supply(serviceInfo),
fx.Provide(fx.Annotate(httpRouter, fx.ParamTags(``, `group:"connectorHandlers"`))),
fx.Provide(fx.Annotate(httpRouter, fx.ParamTags(``, ``, `group:"connectorHandlers"`))),
addConnector[dummypay.Config](dummypay.NewLoader()),
addConnector[modulr.Config](modulr.NewLoader()),
addConnector[stripe.Config](stripe.NewLoader()),
Expand Down
12 changes: 8 additions & 4 deletions swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ paths:
content:
application/json:
schema:
type: object
properties:
version:
type: string
$ref: '#/components/schemas/ServerInfo'
/payments:
get:
summary: List payments
Expand Down Expand Up @@ -1315,3 +1312,10 @@ components:
type: string
key:
type: string
ServerInfo:
type: object
required:
- version
properties:
version:
type: string

0 comments on commit 04fada7

Please sign in to comment.