From 9d86fda0410609c1e530996264429fceb1654d9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Louren=C3=A7o?= Date: Sat, 4 Feb 2023 14:09:24 +0000 Subject: [PATCH] ci: bump golangci-lint to 1.51.0 and fix lint issues --- .circleci/config.yml | 2 +- include_headers.go | 5 ----- versionware/example/releases/embed.go | 3 ++- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ae58407a..47c5b517 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -66,7 +66,7 @@ jobs: lint: docker: - - image: golangci/golangci-lint:v1.43.0 + - image: golangci/golangci-lint:v1.51.0 steps: - checkout - attach_workspace: diff --git a/include_headers.go b/include_headers.go index 68a15769..808020ac 100644 --- a/include_headers.go +++ b/include_headers.go @@ -62,11 +62,6 @@ func (w *includeHeaders) apply() error { return nil } -type includeHeadersRef struct { - Ref string `json:"$ref"` - Value openapi3.Headers `json:"-"` -} - func (w *includeHeaders) applyOperation(op *openapi3.Operation) error { if op == nil { return nil // nothing to do diff --git a/versionware/example/releases/embed.go b/versionware/example/releases/embed.go index c865bd4a..918406c5 100644 --- a/versionware/example/releases/embed.go +++ b/versionware/example/releases/embed.go @@ -4,11 +4,12 @@ import "embed" // Embed compiled OpenAPI specs in Go projects. +// Versions contains OpenAPI specs for each distinct release version. +// //go:embed 2021-11-01~experimental/spec.json //go:embed 2021-11-01~experimental/spec.yaml //go:embed 2021-11-08~experimental/spec.json //go:embed 2021-11-08~experimental/spec.yaml //go:embed 2021-11-20~experimental/spec.json //go:embed 2021-11-20~experimental/spec.yaml -// Versions contains OpenAPI specs for each distinct release version. var Versions embed.FS