]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
docs: Update schemas to reflect latest changes in template
authorStephen Finucane <stephen@that.guru>
Thu, 27 Feb 2020 22:24:45 +0000 (22:24 +0000)
committerStephen Finucane <stephen@that.guru>
Thu, 27 Feb 2020 22:27:29 +0000 (22:27 +0000)
Looks like I forgot to run the 'generate-schema' script beforehand. Fix
that now.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: cd3a2ce8 ("REST: Allow configuration of user settings via API")
docs/api/schemas/latest/patchwork.yaml
docs/api/schemas/v1.2/patchwork.yaml

index 4d660d5c41edca08bebf7d9bdfc70f846ea11eba..4cee151343f819ad5066f978974079eb19fb0b66 100644 (file)
@@ -1092,7 +1092,7 @@ paths:
           content:
             application/json:
               schema:
-                $ref: '#/components/schemas/UserSelf'
+                $ref: '#/components/schemas/UserDetail'
         '403':
           description: Forbidden
           content:
@@ -1129,7 +1129,7 @@ paths:
           content:
             application/json:
               schema:
-                $ref: '#/components/schemas/UserSelf'
+                $ref: '#/components/schemas/UserDetail'
         '400':
           description: Bad request
           content:
@@ -1172,7 +1172,7 @@ paths:
           content:
             application/json:
               schema:
-                $ref: '#/components/schemas/UserSelf'
+                $ref: '#/components/schemas/UserDetail'
         '400':
           description: Bad request
           content:
@@ -1307,13 +1307,13 @@ components:
       content:
         application/json:
           schema:
-            $ref: '#/components/schemas/UserSelf'
+            $ref: '#/components/schemas/UserDetail'
         multipart/form-data:
           schema:
-            $ref: '#/components/schemas/UserSelf'
+            $ref: '#/components/schemas/UserDetail'
         application/x-www-form-urlencoded:
           schema:
-            $ref: '#/components/schemas/UserSelf'
+            $ref: '#/components/schemas/UserDetail'
   schemas:
     Index:
       type: object
@@ -2165,7 +2165,7 @@ components:
           format: email
           readOnly: true
           minLength: 1
-    UserSelf:
+    UserDetail:
       type: object
       allOf:
         - $ref: '#/components/schemas/User'
index 50db73c14a4c9c42c1faf6aa438eb92d51a5c643..be79e3865c40311c431bc3bf8469ddf0f43c8bb7 100644 (file)
@@ -1092,7 +1092,7 @@ paths:
           content:
             application/json:
               schema:
-                $ref: '#/components/schemas/UserSelf'
+                $ref: '#/components/schemas/UserDetail'
         '403':
           description: Forbidden
           content:
@@ -1129,7 +1129,7 @@ paths:
           content:
             application/json:
               schema:
-                $ref: '#/components/schemas/UserSelf'
+                $ref: '#/components/schemas/UserDetail'
         '400':
           description: Bad request
           content:
@@ -1172,7 +1172,7 @@ paths:
           content:
             application/json:
               schema:
-                $ref: '#/components/schemas/UserSelf'
+                $ref: '#/components/schemas/UserDetail'
         '400':
           description: Bad request
           content:
@@ -1307,13 +1307,13 @@ components:
       content:
         application/json:
           schema:
-            $ref: '#/components/schemas/UserSelf'
+            $ref: '#/components/schemas/UserDetail'
         multipart/form-data:
           schema:
-            $ref: '#/components/schemas/UserSelf'
+            $ref: '#/components/schemas/UserDetail'
         application/x-www-form-urlencoded:
           schema:
-            $ref: '#/components/schemas/UserSelf'
+            $ref: '#/components/schemas/UserDetail'
   schemas:
     Index:
       type: object
@@ -2165,7 +2165,7 @@ components:
           format: email
           readOnly: true
           minLength: 1
-    UserSelf:
+    UserDetail:
       type: object
       allOf:
         - $ref: '#/components/schemas/User'