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'