From 0a1d7c1ddc909360e9f32cd8eaa2b1e280d080a2 Mon Sep 17 00:00:00 2001 From: Mladen Jablanovic Date: Mon, 30 Oct 2023 13:02:04 +0100 Subject: [PATCH] go: prevent generating tests --- Makefile | 2 +- openapi-generator/templates/go/api_test.mustache | 0 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 openapi-generator/templates/go/api_test.mustache diff --git a/Makefile b/Makefile index 13ab16d6..f5576ea2 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ docs: lint bundle ruby: openapi-generator-cli generate -i tmp/compiled.yaml -g ruby -o clients/ruby -c ./openapi-generator/ruby_lang.yaml go: - openapi-generator-cli generate -i tmp/compiled.yaml -g go -o clients/go -c ./openapi-generator/go_lang.yaml + openapi-generator-cli generate -i tmp/compiled.yaml -g go -o clients/go -c ./openapi-generator/go_lang.yaml --global-property apiTests=false,modelTests=false go install golang.org/x/tools/cmd/goimports@latest goimports -w clients/go cd clients/go && go mod tidy diff --git a/openapi-generator/templates/go/api_test.mustache b/openapi-generator/templates/go/api_test.mustache deleted file mode 100644 index e69de29b..00000000