From 46bd25f46d79e4cc143e7c5cedae818381d904ba Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 27 Feb 2020 22:24:45 +0000 Subject: [PATCH] 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") --- docs/api/schemas/latest/patchwork.yaml | 14 +++++++------- docs/api/schemas/v1.2/patchwork.yaml | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) 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' -- 2.47.3