From 428137d97817b58c285674d4a743f9250ddbf73b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Tue, 13 Feb 2024 12:05:44 +0900 Subject: [PATCH] fix enum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/compatible/openapi-3.0.yaml | 2 ++ dist/docs/openapi-3.0.yaml | 2 ++ src/openapi/schemas/content.yaml | 19 ++++++++++++------- src/openapi/schemas/tweet.yaml | 4 +++- 4 files changed, 19 insertions(+), 8 deletions(-) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index 9464dd5..245e7b4 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -1511,6 +1511,7 @@ components: - Like - Location - Sparkle + - Conversation type: string landingUrl: $ref: '#/components/schemas/SocialContextLandingUrl' @@ -2273,6 +2274,7 @@ components: type: string state: enum: + - Enabled - EnabledWithCount type: string required: diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index 1e10464..8d3291c 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -1511,6 +1511,7 @@ components: - Like - Location - Sparkle + - Conversation type: string landingUrl: $ref: '#/components/schemas/SocialContextLandingUrl' @@ -2273,6 +2274,7 @@ components: type: string state: enum: + - Enabled - EnabledWithCount type: string required: diff --git a/src/openapi/schemas/content.yaml b/src/openapi/schemas/content.yaml index 3d1ed99..e8ad90c 100644 --- a/src/openapi/schemas/content.yaml +++ b/src/openapi/schemas/content.yaml @@ -59,7 +59,7 @@ components: entryType: $ref: "#/components/schemas/ContentEntryType" # TimelineTimelineCursor displayType: - $ref: "#/components/schemas/DisplayType" + $ref: "#/components/schemas/DisplayType" items: type: array items: @@ -240,14 +240,13 @@ components: mapping": # deprecated TimelineGeneralContext: "#/components/schemas/TimelineGeneralContext" TimelineTopicContext: "#/components/schemas/TimelineTopicContext" - + SocialContextUnionType: type: string - enum: + enum: - TimelineGeneralContext - TimelineTopicContext - TimelineGeneralContext: type: object properties: @@ -255,7 +254,13 @@ components: $ref: "#/components/schemas/SocialContextUnionType" contextType: type: string # enum - enum: ["Follow", "Pin", "Like", "Location", "Sparkle"] + enum: + - "Follow" + - "Pin" + - "Like" + - "Location" + - "Sparkle" + - "Conversation" text: type: string landingUrl: @@ -271,7 +276,7 @@ components: functionalityType: type: string enum: ["Basic"] - + TopicContext: type: object properties: @@ -290,7 +295,7 @@ components: type: boolean not_interested: type: boolean - + SocialContextLandingUrl: type: object properties: diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index 3f89e0c..95b45fa 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -231,7 +231,9 @@ components: pattern: "^[0-9]+$" state: type: string - enum: [EnabledWithCount] + enum: + - Enabled + - EnabledWithCount NoteTweet: required: