From 44cfa3ea4a34db1b638686e116a7a8c19a977c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Thu, 1 Jun 2023 04:57:15 +0900 Subject: [PATCH] build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/typescript/schemas/content.yaml | 12 ++++++++++++ dist/typescript/schemas/instruction.yaml | 7 +++++++ dist/typescript/schemas/tweet.yaml | 6 ++++++ 3 files changed, 25 insertions(+) diff --git a/dist/typescript/schemas/content.yaml b/dist/typescript/schemas/content.yaml index be098e6..c8a13c9 100644 --- a/dist/typescript/schemas/content.yaml +++ b/dist/typescript/schemas/content.yaml @@ -13,11 +13,23 @@ components: - TimelineUser type: string ContentUnion: + discriminator: + mapping": + TimelineTimelineCursor: '#/components/schemas/TimelineTimelineCursor' + TimelineTimelineItem: '#/components/schemas/TimelineTimelineItem' + TimelineTimelineModule: '#/components/schemas/TimelineTimelineModule' + propertyName: entryType oneOf: - $ref: '#/components/schemas/TimelineTimelineItem' - $ref: '#/components/schemas/TimelineTimelineModule' - $ref: '#/components/schemas/TimelineTimelineCursor' ItemContentUnion: + discriminator: + mapping": + TimelineTimelineCursor: '#/components/schemas/TimelineTimelineCursor' + TimelineTweet: '#/components/schemas/TimelineTweet' + TimelineUser: '#/components/schemas/TimelineUser' + propertyName: itemType oneOf: - $ref: '#/components/schemas/TimelineTweet' - $ref: '#/components/schemas/TimelineTimelineCursor' diff --git a/dist/typescript/schemas/instruction.yaml b/dist/typescript/schemas/instruction.yaml index 5e21763..9f73553 100644 --- a/dist/typescript/schemas/instruction.yaml +++ b/dist/typescript/schemas/instruction.yaml @@ -8,6 +8,13 @@ components: - TimelineTerminateTimeline type: string InstructionUnion: + discriminator: + mapping": + TimelineAddEntries: '#/components/schemas/TimelineAddEntries' + TimelineClearCache: '#/components/schemas/TimelineClearCache' + TimelinePinEntry: '#/components/schemas/TimelinePinEntry' + TimelineTerminateTimeline: '#/components/schemas/TimelineTerminateTimeline' + propertyName: type oneOf: - $ref: '#/components/schemas/TimelineAddEntries' - $ref: '#/components/schemas/TimelineClearCache' diff --git a/dist/typescript/schemas/tweet.yaml b/dist/typescript/schemas/tweet.yaml index aa2c1a2..5a72d66 100644 --- a/dist/typescript/schemas/tweet.yaml +++ b/dist/typescript/schemas/tweet.yaml @@ -221,6 +221,12 @@ components: __typename: $ref: ./typename.yaml#/components/schemas/TypeName TweetUnion: + discriminator: + mapping": + Tweet: '#/components/schemas/Tweet' + TweetTombstone: '#/components/schemas/TweetTombstone' + TweetWithVisibilityResults: '#/components/schemas/TweetWithVisibilityResults' + propertyName: __typename oneOf: - $ref: '#/components/schemas/Tweet' - $ref: '#/components/schemas/TweetWithVisibilityResults'