Specify the restrictions on tags array and it's string items (#2016)
authorFrank Sträter <fstrater@beeldengeluid.nl>
Mon, 12 Aug 2019 08:19:45 +0000 (10:19 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 12 Aug 2019 08:19:45 +0000 (10:19 +0200)
* Fixed 2 typos

* Specify tags array restrictions

support/doc/api/openapi.yaml

index 66604a947fbd139df0a22dc293064ad20e5e42de..08ef6353036f65a06b53a3fac10dcb8867fd1eb0 100644 (file)
@@ -863,8 +863,12 @@ paths:
                 tags:
                   description: Video tags (maximum 5 tags each between 2 and 30 characters)
                   type: array
+                  minItems: 1
+                  maxItems: 5
                   items:
                     type: string
+                    minLength: 2
+                    maxLength: 30
                 commentsEnabled:
                   description: Enable or disable comments for this video
                   type: string
@@ -1055,10 +1059,14 @@ paths:
                   description: Video name
                   type: string
                 tags:
-                  description: Video tags
+                  description: Video tags (maximum 5 tags each between 2 and 30 characters)
                   type: array
+                  minItems: 1
+                  maxItems: 5
                   items:
                     type: string
+                    minLength: 2
+                    maxLength: 30
                 commentsEnabled:
                   description: Enable or disable comments for this video
                   type: string
@@ -1164,10 +1172,14 @@ paths:
                   description: Video name
                   type: string
                 tags:
-                  description: Video tags
+                  description: Video tags (maximum 5 tags each between 2 and 30 characters)
                   type: array
+                  minItems: 1
+                  maxItems: 5
                   items:
                     type: string
+                    minLength: 2
+                    maxLength: 30
                 commentsEnabled:
                   description: Enable or disable comments for this video
                   type: string