summaryrefslogtreecommitdiff
path: root/internal/api/client/filters
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/filters')
-rw-r--r--internal/api/client/filters/v1/filterpost.go39
-rw-r--r--internal/api/client/filters/v1/filterput.go39
2 files changed, 48 insertions, 30 deletions
diff --git a/internal/api/client/filters/v1/filterpost.go b/internal/api/client/filters/v1/filterpost.go
index b0a626199..e150e8609 100644
--- a/internal/api/client/filters/v1/filterpost.go
+++ b/internal/api/client/filters/v1/filterpost.go
@@ -48,49 +48,58 @@ import (
// name: phrase
// in: formData
// required: true
-// description: The text to be filtered.
+// description: |-
+// The text to be filtered.
+//
+// Sample: fnord
// maxLength: 40
// type: string
-// example: "fnord"
// -
// name: context
// in: formData
// required: true
-// description: The contexts in which the filter should be applied.
+// description: |-
+// The contexts in which the filter should be applied.
+//
+// Sample: home, public
// enum:
// - home
// - notifications
// - public
// - thread
// - account
-// example:
-// - home
-// - public
-// items:
-// $ref: '#/definitions/filterContext'
-// minLength: 1
// type: array
+// items:
+// type:
+// string
+// minItems: 1
// uniqueItems: true
// -
// name: expires_in
// in: formData
-// description: Number of seconds from now that the filter should expire. If omitted, filter never expires.
+// description: |-
+// Number of seconds from now that the filter should expire. If omitted, filter never expires.
+//
+// Sample: 86400
// type: number
-// example: 86400
// -
// name: irreversible
// in: formData
-// description: Should matching entities be removed from the user's timelines/views, instead of hidden? Not supported yet.
+// description: |-
+// Should matching entities be removed from the user's timelines/views, instead of hidden? Not supported yet.
+//
+// Sample: false
// type: boolean
// default: false
-// example: false
// -
// name: whole_word
// in: formData
-// description: Should the filter consider word boundaries?
+// description: |-
+// Should the filter consider word boundaries?
+//
+// Sample: true
// type: boolean
// default: false
-// example: true
//
// security:
// - OAuth2 Bearer:
diff --git a/internal/api/client/filters/v1/filterput.go b/internal/api/client/filters/v1/filterput.go
index c686e4515..1822efb6d 100644
--- a/internal/api/client/filters/v1/filterput.go
+++ b/internal/api/client/filters/v1/filterput.go
@@ -54,49 +54,58 @@ import (
// name: phrase
// in: formData
// required: true
-// description: The text to be filtered.
+// description: |-
+// The text to be filtered.
+//
+// Sample: fnord
// maxLength: 40
// type: string
-// example: "fnord"
// -
// name: context
// in: formData
// required: true
-// description: The contexts in which the filter should be applied.
+// description: |-
+// The contexts in which the filter should be applied.
+//
+// Sample: home, public
// enum:
// - home
// - notifications
// - public
// - thread
// - account
-// example:
-// - home
-// - public
-// items:
-// $ref: '#/definitions/filterContext'
-// minLength: 1
// type: array
+// items:
+// type:
+// string
+// minItems: 1
// uniqueItems: true
// -
// name: expires_in
// in: formData
-// description: Number of seconds from now that the filter should expire. If omitted, filter never expires.
+// description: |-
+// Number of seconds from now that the filter should expire. If omitted, filter never expires.
+//
+// Sample: 86400
// type: number
-// example: 86400
// -
// name: irreversible
// in: formData
-// description: Should matching entities be removed from the user's timelines/views, instead of hidden? Not supported yet.
+// description: |-
+// Should matching entities be removed from the user's timelines/views, instead of hidden? Not supported yet.
+//
+// Sample: false
// type: boolean
// default: false
-// example: false
// -
// name: whole_word
// in: formData
-// description: Should the filter consider word boundaries?
+// description: |-
+// Should the filter consider word boundaries?
+//
+// Sample: true
// type: boolean
// default: false
-// example: true
//
// security:
// - OAuth2 Bearer: