Correct the type of filter query parameter in OAS (#21802)

* Correct the type of filter query parameter in OAS

* Add changeset

---------

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>
This commit is contained in:
Pascal Jufer
2024-03-12 18:21:01 +01:00
committed by GitHub
parent d530354ae7
commit 74604767da
2 changed files with 10 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
---
'@directus/specs': patch
---
Corrected the type of the filter query parameter in OpenAPI specs

View File

@@ -2,8 +2,8 @@ description: Select items in collection by given conditions.
in: query
name: filter
required: false
schema:
type: array
items:
type: string
pattern: '^(\[[^\[\]]*?\]){1}(\[(_eq|_neq|_lt|_lte|_gt|_gte|_in|_nin|_null|_nnull|_contains|_ncontains|_between|_nbetween|_empty|_nempty)\])?=.*?$'
content:
application/json:
schema:
type: object
example: { <field>: { <operator>: <value> } }