From 83bace2914910f78fc272f9cd24c90bcb6327d3e Mon Sep 17 00:00:00 2001 From: Miha Lunar Date: Mon, 25 Nov 2024 21:27:40 +0100 Subject: [PATCH] Fix go run for oapi-codegen --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 702fca6..fc7f23c 100644 --- a/main.go +++ b/main.go @@ -67,7 +67,7 @@ import ( "photofield/tag" ) -//go:generate oapi-codegen -generate=types,chi-server -package=openapi -o internal/openapi/api.gen.go api.yaml +//go:generate go run github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.8.2 -generate=types,chi-server -package=openapi -o internal/openapi/api.gen.go api.yaml //go:embed defaults.yaml var defaultsYaml []byte