From 3dd0001a32d4bb94aee9815409a9142836ae0b1d Mon Sep 17 00:00:00 2001 From: Era Dorta Date: Mon, 6 Apr 2026 18:15:06 +0200 Subject: [PATCH] Set docs version dynamically. --- src/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.go b/src/main.go index bc63ea2..2450496 100644 --- a/src/main.go +++ b/src/main.go @@ -84,6 +84,7 @@ func main() { } else { docs.SwaggerInfo.Schemes = []string{"https", "http"} } + docs.SwaggerInfo.Version = utils.GetEnv("BUILD_VERSION", "1.0") router := gin.New() router.Use(gin.LoggerWithConfig(gin.LoggerConfig{