From 359c8ec2d4221875733a110dfb9df746a8d84588 Mon Sep 17 00:00:00 2001 From: wass3r <1301201+wass3r@users.noreply.github.com> Date: Mon, 10 Jun 2024 15:01:44 -0500 Subject: [PATCH] fix: swagger error and golangci-lint config one overlooked swagger annotation issue fix for golangci-lint config (format is not a valid property) - which also fixes error reporting locally in certain editors --- .golangci.yml | 5 ++++- api/auth/validate_oauth.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index f857a2c9f..df7592d27 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -8,7 +8,10 @@ # outputs it results from the linters it executes. output: # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" - format: colored-line-number + formats: + - format: json + path: stderr + - format: colored-line-number # print lines of code with issue, default is true print-issued-lines: true diff --git a/api/auth/validate_oauth.go b/api/auth/validate_oauth.go index 94af8ca86..b96918325 100644 --- a/api/auth/validate_oauth.go +++ b/api/auth/validate_oauth.go @@ -30,7 +30,7 @@ import ( // '200': // description: Successfully validated // schema: -// "$ref": "#/definitions/Token" +// type: string // '401': // description: Unauthorized // schema: