From 04fada74a67ebaa1ee74eacc56da45a29f905603 Mon Sep 17 00:00:00 2001 From: Ragot Geoffrey Date: Fri, 16 Dec 2022 11:58:44 +0100 Subject: [PATCH] fix: swagger --- internal/app/api/module.go | 2 +- swagger.yml | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/internal/app/api/module.go b/internal/app/api/module.go index a4a85f8e..ebe3a8d6 100644 --- a/internal/app/api/module.go +++ b/internal/app/api/module.go @@ -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()), diff --git a/swagger.yml b/swagger.yml index 1a339f24..e9f968dd 100644 --- a/swagger.yml +++ b/swagger.yml @@ -14,10 +14,7 @@ paths: content: application/json: schema: - type: object - properties: - version: - type: string + $ref: '#/components/schemas/ServerInfo' /payments: get: summary: List payments @@ -1315,3 +1312,10 @@ components: type: string key: type: string + ServerInfo: + type: object + required: + - version + properties: + version: + type: string