From c55f94d6f23d4c18a895984a15c3272bb4de1258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sun, 24 Nov 2024 00:45:27 +0900 Subject: [PATCH] update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/compatible/openapi-3.0.yaml | 22 +++++++++++----------- dist/docs/openapi-3.0.yaml | 22 +++++++++++----------- src/openapi/schemas/tweet.yaml | 10 +++++----- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index ef8d0b8..4b5fcbd 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -314,7 +314,7 @@ components: delete_action_result: $ref: '#/components/schemas/CommunityDeleteActionResult' join_action_result: - $ref: '#/components/schemas/CommunityJoinActionUnion' + $ref: '#/components/schemas/CommunityJoinActionResultUnion' leave_action_result: $ref: '#/components/schemas/CommunityLeaveActionResult' pin_action_result: @@ -438,12 +438,21 @@ components: - __typename - reason - message - CommunityJoinActionResult: + CommunityJoinAction: properties: __typename: $ref: '#/components/schemas/TypeName' required: - __typename + CommunityJoinActionResultUnion: + discriminator: + mapping: + CommunityJoinAction: '#/components/schemas/CommunityJoinAction' + CommunityJoinActionUnavailable: '#/components/schemas/CommunityJoinActionUnavailable' + propertyName: __typename + oneOf: + - $ref: '#/components/schemas/CommunityJoinAction' + - $ref: '#/components/schemas/CommunityJoinActionUnavailable' CommunityJoinActionUnavailable: properties: __typename: @@ -458,15 +467,6 @@ components: - __typename - reason - message - CommunityJoinActionUnion: - discriminator: - mapping: - CommunityJoinAction: '#/components/schemas/CommunityJoinActionResult' - CommunityJoinActionUnavailable: '#/components/schemas/CommunityJoinActionUnavailable' - propertyName: __typename - oneOf: - - $ref: '#/components/schemas/CommunityJoinActionResult' - - $ref: '#/components/schemas/CommunityJoinActionUnavailable' CommunityJoinRequestsResult: properties: __typename: diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index 63996a2..dd8c776 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -314,7 +314,7 @@ components: delete_action_result: $ref: '#/components/schemas/CommunityDeleteActionResult' join_action_result: - $ref: '#/components/schemas/CommunityJoinActionUnion' + $ref: '#/components/schemas/CommunityJoinActionResultUnion' leave_action_result: $ref: '#/components/schemas/CommunityLeaveActionResult' pin_action_result: @@ -438,12 +438,21 @@ components: - __typename - reason - message - CommunityJoinActionResult: + CommunityJoinAction: properties: __typename: $ref: '#/components/schemas/TypeName' required: - __typename + CommunityJoinActionResultUnion: + discriminator: + mapping: + CommunityJoinAction: '#/components/schemas/CommunityJoinAction' + CommunityJoinActionUnavailable: '#/components/schemas/CommunityJoinActionUnavailable' + propertyName: __typename + oneOf: + - $ref: '#/components/schemas/CommunityJoinAction' + - $ref: '#/components/schemas/CommunityJoinActionUnavailable' CommunityJoinActionUnavailable: properties: __typename: @@ -458,15 +467,6 @@ components: - __typename - reason - message - CommunityJoinActionUnion: - discriminator: - mapping: - CommunityJoinAction: '#/components/schemas/CommunityJoinActionResult' - CommunityJoinActionUnavailable: '#/components/schemas/CommunityJoinActionUnavailable' - propertyName: __typename - oneOf: - - $ref: '#/components/schemas/CommunityJoinActionResult' - - $ref: '#/components/schemas/CommunityJoinActionUnavailable' CommunityJoinRequestsResult: properties: __typename: diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index f7fb3c7..1fd0da0 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -543,7 +543,7 @@ components: delete_action_result: $ref: "#/components/schemas/CommunityDeleteActionResult" join_action_result: - $ref: "#/components/schemas/CommunityJoinActionUnion" + $ref: "#/components/schemas/CommunityJoinActionResultUnion" leave_action_result: $ref: "#/components/schemas/CommunityLeaveActionResult" pin_action_result: @@ -562,17 +562,17 @@ components: type: string enum: [Unavailable] - CommunityJoinActionUnion: + CommunityJoinActionResultUnion: oneOf: - - $ref: "#/components/schemas/CommunityJoinActionResult" + - $ref: "#/components/schemas/CommunityJoinAction" - $ref: "#/components/schemas/CommunityJoinActionUnavailable" discriminator: propertyName: __typename mapping: # deprecated - CommunityJoinAction: "#/components/schemas/CommunityJoinActionResult" + CommunityJoinAction: "#/components/schemas/CommunityJoinAction" CommunityJoinActionUnavailable: "#/components/schemas/CommunityJoinActionUnavailable" - CommunityJoinActionResult: + CommunityJoinAction: required: - "__typename" properties: