From 2ee725c42c16f431695eef7224cab8a451b0dc80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sosnowski?= Date: Sun, 11 Jan 2026 11:06:48 +0100 Subject: [PATCH] Aktualizacja OpenApi Schema --- cityfeel/api/spec/schema.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/cityfeel/api/spec/schema.yml b/cityfeel/api/spec/schema.yml index 2b2d1d2..4cc56e4 100644 --- a/cityfeel/api/spec/schema.yml +++ b/cityfeel/api/spec/schema.yml @@ -450,9 +450,7 @@ paths: schema: type: array items: - type: integer - maximum: 5 - minimum: 1 + type: string description: Wiele wartości można rozdzielić przecinkami explode: false style: form @@ -719,6 +717,9 @@ components: username: type: string readOnly: true + comment: + type: string + writeOnly: true required: - emotional_value - id @@ -843,7 +844,7 @@ components: latest_comment: type: object nullable: true - description: Ostatni publiczny komentarz dodany w tej lokalizacji. + description: Ostatni komentarz (publiczny lub prywatny) dodany w tej lokalizacji. properties: username: type: string @@ -937,6 +938,9 @@ components: username: type: string readOnly: true + comment: + type: string + writeOnly: true PatchedFriendship: type: object description: Serializer dla modelu Friendship (zaproszenia do znajomych).