From 59d33ec11a3c226c0e228c918ff8973e682e7b09 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz>
Date: Sun, 3 Jan 2021 15:25:05 +0100
Subject: [PATCH] Limity delky zprav

---
 .gitlab-ci.yml |  2 +-
 openapi.yaml   | 10 +++++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0294ae2..f466356 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,7 +3,7 @@ image: docker:19.03.1
 variables:
   DOCKER_TLS_CERTDIR: "/certs"
   IMAGE_TAG: $CI_REGISTRY_IMAGE
-  IMAGE_VER: 1.5.2
+  IMAGE_VER: 1.6.0
 
 services:
   - docker:19.03.1-dind
diff --git a/openapi.yaml b/openapi.yaml
index 216ca04..ed4dec9 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -1,7 +1,7 @@
 openapi: 3.0.3
 
 info:
-  version: 1.5.1
+  version: 1.6.0
   title: CF Online
   description: CF Online
   license:
@@ -135,8 +135,10 @@ components:
           enum: [0, 1, 2, 3, 4, 5]
         content:
           type: string
+          maxLength: 1024
         link:
           type: string
+          maxLength: 256
         related_post_id:
           type: integer
     Post:
@@ -148,6 +150,7 @@ components:
           readOnly: true
         datetime:
           type: string
+          readOnly: true
         type:
           type: integer
           enum: [0, 1]
@@ -156,6 +159,7 @@ components:
           enum: [0, 1, 2, 3, 4]
         content:
           type: string
+          maxLength: 1024
         is_changed:
           type: boolean
         is_archived:
@@ -259,8 +263,10 @@ paths:
                   enum: [3, 4]
                 content:
                   type: string
+                  maxLength: 1024
                 link:
                   type: string
+                  maxLength: 256
               required:
                 - content
       responses:
@@ -359,6 +365,7 @@ paths:
                   enum: [0, 1]
                 content:
                   type: string
+                  maxLength: 1024
               required:
                 - type
                 - content
@@ -464,6 +471,7 @@ paths:
                   enum: [0, 1, 2, 3, 4]
                 content:
                   type: string
+                  maxLength: 1024
                 is_archived:
                   type: boolean
       responses:
-- 
GitLab