From 100d660797762ad00c07d757dac930a5f8b5f7ff Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Mon, 9 Sep 2024 00:52:49 -0700 Subject: [PATCH] [bugfix] Swagger: add missing filter_action param for v2 filter PUT (#3281) --- docs/api/swagger.yaml | 10 ++++++++++ internal/api/client/filters/v2/filterput.go | 11 +++++++++++ 2 files changed, 21 insertions(+) diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index 73ff22683..8d11ba7da 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -10462,6 +10462,16 @@ paths: in: formData name: expires_in type: number + - description: |- + The action to be taken when a status matches this filter. + + Sample: warn + enum: + - warn + - hide + in: formData + name: filter_action + type: string produces: - application/json responses: diff --git a/internal/api/client/filters/v2/filterput.go b/internal/api/client/filters/v2/filterput.go index c86dc36dc..24f7e7567 100644 --- a/internal/api/client/filters/v2/filterput.go +++ b/internal/api/client/filters/v2/filterput.go @@ -121,6 +121,17 @@ import ( // // Sample: 86400 // type: number +// - +// name: filter_action +// in: formData +// description: |- +// The action to be taken when a status matches this filter. +// +// Sample: warn +// type: string +// enum: +// - warn +// - hide // // security: // - OAuth2 Bearer: