From fe0f51442070453513a204c3cd84d9006b0cb840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sat, 22 Apr 2023 01:58:04 +0900 Subject: [PATCH] add user_results MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/schemas/content.yaml | 2 ++ dist/schemas/user.yaml | 9 +-------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/dist/schemas/content.yaml b/dist/schemas/content.yaml index f2d3622..9a90be4 100644 --- a/dist/schemas/content.yaml +++ b/dist/schemas/content.yaml @@ -166,6 +166,8 @@ components: type: string userDisplayType: type: string + user_results: + $ref: ./user.yaml#/components/schemas/UserResults required: - __typename - itemType diff --git a/dist/schemas/user.yaml b/dist/schemas/user.yaml index 2b50a11..fccfd97 100644 --- a/dist/schemas/user.yaml +++ b/dist/schemas/user.yaml @@ -197,16 +197,9 @@ components: UserResults: properties: result: - $ref: '#/components/schemas/UserUnion' + $ref: '#/components/schemas/User' required: - result - UserUnion: - discriminator: - mapping": - User: '#/components/schemas/User' - propertyName: __typename - oneOf: - - $ref: '#/components/schemas/User' info: title: Twitter OpenAPI version: 0.0.1