From: Stephen Finucane Date: Thu, 27 Feb 2020 22:24:45 +0000 (+0000) Subject: docs: Update schemas to reflect latest changes in template X-Git-Tag: v2.2.0-rc2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=46bd25f46d79e4cc143e7c5cedae818381d904ba;p=thirdparty%2Fpatchwork.git docs: Update schemas to reflect latest changes in template Looks like I forgot to run the 'generate-schema' script beforehand. Fix that now. Signed-off-by: Stephen Finucane Fixes: cd3a2ce8 ("REST: Allow configuration of user settings via API") --- diff --git a/docs/api/schemas/latest/patchwork.yaml b/docs/api/schemas/latest/patchwork.yaml index 4d660d5c..4cee1513 100644 --- a/docs/api/schemas/latest/patchwork.yaml +++ b/docs/api/schemas/latest/patchwork.yaml @@ -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' diff --git a/docs/api/schemas/v1.2/patchwork.yaml b/docs/api/schemas/v1.2/patchwork.yaml index 50db73c1..be79e386 100644 --- a/docs/api/schemas/v1.2/patchwork.yaml +++ b/docs/api/schemas/v1.2/patchwork.yaml @@ -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'