diff options
author | 2024-03-06 09:44:58 -0800 | |
---|---|---|
committer | 2024-03-06 18:44:58 +0100 | |
commit | 5159664a51a3e952acd972833cb65613a030da26 (patch) | |
tree | db7823fb966b4b183e8b9305c4cafc52374b1238 | |
parent | [bugfix] Fix Swagger spec and add test script (#2698) (diff) | |
download | gotosocial-5159664a51a3e952acd972833cb65613a030da26.tar.xz |
[chore] Fix a Swagger warning that only manifests during Go client code generation (#2729)
-rw-r--r-- | docs/api/swagger.yaml | 2 | ||||
-rw-r--r-- | internal/api/model/filterv1.go | 2 |
2 files changed, 2 insertions, 2 deletions
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 |