Fix role documentation in rest api
authorChocobozzz <me@florianbigard.com>
Fri, 24 May 2019 07:25:30 +0000 (09:25 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 24 May 2019 07:25:30 +0000 (09:25 +0200)
support/doc/api/openapi.yaml

index 3c7688a7c8f35b80ab77cea9c494a4a29512384a..21818ae8187054b0a12da34b886f0327470b518e 100644 (file)
@@ -1966,6 +1966,13 @@ components:
         autoPlayVideo:
           type: boolean
         role:
+          type: integer
+          enum:
+            - 0
+            - 1
+            - 2
+          description: 'The user role (Admin = 0, Moderator = 1, User = 2)'
+        roleLabel:
           type: string
           enum:
             - User
@@ -2115,12 +2122,11 @@ components:
           description: 'The user daily video quota '
         role:
           type: integer
-          format: int32
           enum:
             - 0
             - 1
             - 2
-          description: 'The user role '
+          description: 'The user role (Admin = 0, Moderator = 1, User = 2)'
       required:
         - username
         - password
@@ -2143,8 +2149,12 @@ components:
           type: string
           description: 'The updated daily video quota of the user '
         role:
-          type: string
-          description: 'The updated role of the user '
+          type: integer
+          enum:
+            - 0
+            - 1
+            - 2
+          description: 'The user role (Admin = 0, Moderator = 1, User = 2)'
       required:
         - id
         - email