From 07d02f6de885e3b9dafcab0080dca97d1c04e302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Str=C3=A4ter?= Date: Mon, 12 Aug 2019 10:19:45 +0200 Subject: Specify the restrictions on tags array and it's string items (#2016) * Fixed 2 typos * Specify tags array restrictions --- support/doc/api/openapi.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index 66604a947..08ef63530 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -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 -- cgit v1.2.3