From b8a1efe996415eeb336a7c0e1079f73a35d9b747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20van=20den=20Hoek?= Date: Mon, 8 Sep 2025 10:45:51 +0200 Subject: [PATCH 1/3] fix #99 and #100 (ArticleResult and CommunityData) --- src/openapi/schemas/tweet.yaml | 5 +++-- src/openapi/schemas/typename.yaml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index 5270dbd..182f342 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -452,7 +452,7 @@ components: CommunityData: required: - "__typename" - - "id_str" + # - "id_str" # - "name" # - "description" # - "search_tags" @@ -1432,7 +1432,6 @@ components: - "id" - "title" - "preview_text" - - "cover_media" - "metadata" properties: rest_id: @@ -1450,6 +1449,8 @@ components: $ref: "#/components/schemas/ArticleMetadata" lifecycle_state: $ref: "#/components/schemas/ArticleLifecycleState" + # todo: content_state (#101) + # todo: media_entities (#101) ArticleCoverMedia: required: diff --git a/src/openapi/schemas/typename.yaml b/src/openapi/schemas/typename.yaml index 6246f54..87f19b5 100644 --- a/src/openapi/schemas/typename.yaml +++ b/src/openapi/schemas/typename.yaml @@ -38,5 +38,6 @@ components: CommunityTweetUnpinActionUnavailable, CommunityInvitesUnavailable, CommunityJoinRequestsUnavailable, + CommunityUnavailable, ApiImage, ] From 10657d34f093de0037e5d6b965d5afe2b754a4e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20van=20den=20Hoek?= Date: Mon, 8 Sep 2025 15:41:19 +0200 Subject: [PATCH 2/3] fix #103 (TweetInterstitial) --- src/openapi/schemas/tweet.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index 182f342..16c3b7f 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -51,7 +51,7 @@ components: $ref: "./typename.yaml#/components/schemas/TypeName" # ContextualTweetInterstitial displayType: type: string - enum: [NonCompliant] + enum: [NonCompliant, EntireTweet] text: $ref: "#/components/schemas/TweetInterstitialText" revealText: @@ -277,7 +277,6 @@ components: NoteTweet: required: - - "is_expandable" - "note_tweet_results" properties: is_expandable: From 4779f7555aa1153a570571963a6fbeb9538c0460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20van=20den=20Hoek?= Date: Mon, 22 Sep 2025 12:31:51 +0200 Subject: [PATCH 3/3] fix #104 (parody_commentary_fan_label) --- src/openapi/schemas/user.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openapi/schemas/user.yaml b/src/openapi/schemas/user.yaml index ef6439e..96fd3b4 100644 --- a/src/openapi/schemas/user.yaml +++ b/src/openapi/schemas/user.yaml @@ -95,7 +95,7 @@ components: type: boolean parody_commentary_fan_label: type: string - enum: ["None", "Parody", "Commentary"] + enum: ["None", "Parody", "Commentary", "Fan"] UserProfessional: required: