From 078b9cab8fd10d2eca49603cf31e15e3067fefaf Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Sun, 8 Sep 2024 12:37:38 -0400 Subject: [PATCH] docs(openapi): remove scheme for dynamic support Signed-off-by: Chris Gianelloni --- docs/docs.go | 2 +- docs/swagger.json | 3 --- docs/swagger.yaml | 2 -- internal/api/api.go | 1 - 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index b1e15aa..2e936d4 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -472,7 +472,7 @@ var SwaggerInfo = &swag.Spec{ Version: "1.0", Host: "", BasePath: "/api", - Schemes: []string{"http"}, + Schemes: []string{}, Title: "cardano-node-api", Description: "Cardano Node API", InfoInstanceName: "swagger", diff --git a/docs/swagger.json b/docs/swagger.json index 3f65d65..4992a24 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1,7 +1,4 @@ { - "schemes": [ - "http" - ], "swagger": "2.0", "info": { "description": "Cardano Node API", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 1d7987a..849af56 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -296,6 +296,4 @@ paths: schema: type: string summary: Submit Tx -schemes: -- http swagger: "2.0" diff --git a/internal/api/api.go b/internal/api/api.go index 897867a..64565c5 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -33,7 +33,6 @@ import ( // @title cardano-node-api // @version 1.0 // @description Cardano Node API -// @Schemes http // @BasePath /api // @contact.name Blink Labs // @contact.url https://blinklabs.io