diff options
author | Frank Sträter <fstrater@beeldengeluid.nl> | 2019-08-12 10:19:45 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-12 10:19:45 +0200 |
commit | 07d02f6de885e3b9dafcab0080dca97d1c04e302 (patch) | |
tree | 13af9349a6e03d7c1a73d70119afd0aeb1855a03 | |
parent | 322adef183f501012fbdb57f828581d09c5136ca (diff) | |
download | PeerTube-07d02f6de885e3b9dafcab0080dca97d1c04e302.tar.gz PeerTube-07d02f6de885e3b9dafcab0080dca97d1c04e302.tar.zst PeerTube-07d02f6de885e3b9dafcab0080dca97d1c04e302.zip |
Specify the restrictions on tags array and it's string items (#2016)
* Fixed 2 typos
* Specify tags array restrictions
-rw-r--r-- | support/doc/api/openapi.yaml | 16 |
1 files 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: | |||
863 | tags: | 863 | tags: |
864 | description: Video tags (maximum 5 tags each between 2 and 30 characters) | 864 | description: Video tags (maximum 5 tags each between 2 and 30 characters) |
865 | type: array | 865 | type: array |
866 | minItems: 1 | ||
867 | maxItems: 5 | ||
866 | items: | 868 | items: |
867 | type: string | 869 | type: string |
870 | minLength: 2 | ||
871 | maxLength: 30 | ||
868 | commentsEnabled: | 872 | commentsEnabled: |
869 | description: Enable or disable comments for this video | 873 | description: Enable or disable comments for this video |
870 | type: string | 874 | type: string |
@@ -1055,10 +1059,14 @@ paths: | |||
1055 | description: Video name | 1059 | description: Video name |
1056 | type: string | 1060 | type: string |
1057 | tags: | 1061 | tags: |
1058 | description: Video tags | 1062 | description: Video tags (maximum 5 tags each between 2 and 30 characters) |
1059 | type: array | 1063 | type: array |
1064 | minItems: 1 | ||
1065 | maxItems: 5 | ||
1060 | items: | 1066 | items: |
1061 | type: string | 1067 | type: string |
1068 | minLength: 2 | ||
1069 | maxLength: 30 | ||
1062 | commentsEnabled: | 1070 | commentsEnabled: |
1063 | description: Enable or disable comments for this video | 1071 | description: Enable or disable comments for this video |
1064 | type: string | 1072 | type: string |
@@ -1164,10 +1172,14 @@ paths: | |||
1164 | description: Video name | 1172 | description: Video name |
1165 | type: string | 1173 | type: string |
1166 | tags: | 1174 | tags: |
1167 | description: Video tags | 1175 | description: Video tags (maximum 5 tags each between 2 and 30 characters) |
1168 | type: array | 1176 | type: array |
1177 | minItems: 1 | ||
1178 | maxItems: 5 | ||
1169 | items: | 1179 | items: |
1170 | type: string | 1180 | type: string |
1181 | minLength: 2 | ||
1182 | maxLength: 30 | ||
1171 | commentsEnabled: | 1183 | commentsEnabled: |
1172 | description: Enable or disable comments for this video | 1184 | description: Enable or disable comments for this video |
1173 | type: string | 1185 | type: string |