diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index 3cf9922a7..be833cf51 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -1018,7 +1018,7 @@ definitions: - public items: $ref: '#/definitions/filterContext' - minLength: 1 + minItems: 1 type: array uniqueItems: true x-go-name: Context diff --git a/internal/api/model/filterv1.go b/internal/api/model/filterv1.go index 52250f537..1c3b5fb8e 100644 --- a/internal/api/model/filterv1.go +++ b/internal/api/model/filterv1.go @@ -40,7 +40,7 @@ type FilterV1 struct { Phrase string `json:"phrase"` // The contexts in which the filter should be applied. // - // Minimum length: 1 + // Minimum items: 1 // Unique: true // Enum: // - home