From c8e0fd0bccb37898c1eb111256397c9c2e039598 Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 12 Jul 2022 01:07:16 +0200 Subject: Add spectral linter for Swagger (#20321) [spectral](https://github.com/stoplightio/spectral) lints openapi/swagger files for mistakes of which it has identified a few and which I've fixed. I had to put it into `lint-frontend` because it depends on node_modules so can not run on Drone during the backend target. I plan to refactor these targets later to `lint-js` and `lint-go` so that they are categorized based on the tool dependencies. --- routers/api/v1/swagger/options.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'routers/api/v1/swagger/options.go') diff --git a/routers/api/v1/swagger/options.go b/routers/api/v1/swagger/options.go index 2bd43c6180..df3d011246 100644 --- a/routers/api/v1/swagger/options.go +++ b/routers/api/v1/swagger/options.go @@ -107,9 +107,6 @@ type swaggerParameterBodies struct { // in:body EditUserOption api.EditUserOption - // in:body - MigrateRepoForm forms.MigrateRepoForm - // in:body EditAttachmentOptions api.EditAttachmentOptions -- cgit v1.2.3