Skip to content

Commit

Permalink
Merge pull request #81 from fa0311/dev
Browse files Browse the repository at this point in the history
update
  • Loading branch information
fa0311 authored Nov 23, 2024
2 parents 462cd08 + c55f94d commit 1c33ce5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
22 changes: 11 additions & 11 deletions dist/compatible/openapi-3.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down
22 changes: 11 additions & 11 deletions dist/docs/openapi-3.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions src/openapi/schemas/tweet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 1c33ce5

Please sign in to comment.