From 870bbe2395ae08481f391b4097d8dd0c1b08793b Mon Sep 17 00:00:00 2001 From: Iron_Felix Date: Sat, 22 Nov 2025 05:14:42 +0300 Subject: [PATCH] feat: now status can be array --- api/paths/titles.yaml | 6 ++++++ api/schemas/Image.yaml | 3 ++- api/schemas/Studio.yaml | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/api/paths/titles.yaml b/api/paths/titles.yaml index e868ed6..3c5cf76 100644 --- a/api/paths/titles.yaml +++ b/api/paths/titles.yaml @@ -15,7 +15,13 @@ get: - in: query name: status schema: + type: array + items: $ref: '../schemas/enums/TitleStatus.yaml' + description: List of title statuses to filter + style: form + explode: true + - in: query name: rating schema: diff --git a/api/schemas/Image.yaml b/api/schemas/Image.yaml index 7226b29..4ae3cb7 100644 --- a/api/schemas/Image.yaml +++ b/api/schemas/Image.yaml @@ -1,6 +1,7 @@ type: object properties: - id: +# id выпиливаем + id: type: integer format: int64 storage_type: diff --git a/api/schemas/Studio.yaml b/api/schemas/Studio.yaml index 35b40a8..26a2adf 100644 --- a/api/schemas/Studio.yaml +++ b/api/schemas/Studio.yaml @@ -3,6 +3,7 @@ required: - id - name properties: +# id не нужен id: type: integer format: int64