From a865bbaa09498ec56ae2ef25832b9adef4c0686f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Mon, 31 Jul 2023 20:19:29 +0900 Subject: [PATCH] add CursorType MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/compatible/schemas/content.yaml | 16 +++++++++------- dist/docs/schemas/content.yaml | 16 +++++++++------- src/openapi/schemas/content.yaml | 7 +++++-- 3 files changed, 23 insertions(+), 16 deletions(-) diff --git a/dist/compatible/schemas/content.yaml b/dist/compatible/schemas/content.yaml index dd5f98b..cf53767 100644 --- a/dist/compatible/schemas/content.yaml +++ b/dist/compatible/schemas/content.yaml @@ -25,6 +25,14 @@ components: - $ref: '#/components/schemas/TimelineTimelineItem' - $ref: '#/components/schemas/TimelineTimelineModule' - $ref: '#/components/schemas/TimelineTimelineCursor' + CursorType: + enum: + - Top + - Bottom + - ShowMore + - ShowMoreThreads + - Gap + type: string ItemContentUnion: discriminator: mapping": @@ -92,13 +100,7 @@ components: __typename: $ref: ./typename.yaml#/components/schemas/TypeName cursorType: - enum: - - Top - - Bottom - - ShowMore - - ShowMoreThreads - - Gap - type: string + $ref: '#/components/schemas/CursorType' entryType: $ref: '#/components/schemas/ContentEntryType' itemType: diff --git a/dist/docs/schemas/content.yaml b/dist/docs/schemas/content.yaml index dd5f98b..cf53767 100644 --- a/dist/docs/schemas/content.yaml +++ b/dist/docs/schemas/content.yaml @@ -25,6 +25,14 @@ components: - $ref: '#/components/schemas/TimelineTimelineItem' - $ref: '#/components/schemas/TimelineTimelineModule' - $ref: '#/components/schemas/TimelineTimelineCursor' + CursorType: + enum: + - Top + - Bottom + - ShowMore + - ShowMoreThreads + - Gap + type: string ItemContentUnion: discriminator: mapping": @@ -92,13 +100,7 @@ components: __typename: $ref: ./typename.yaml#/components/schemas/TypeName cursorType: - enum: - - Top - - Bottom - - ShowMore - - ShowMoreThreads - - Gap - type: string + $ref: '#/components/schemas/CursorType' entryType: $ref: '#/components/schemas/ContentEntryType' itemType: diff --git a/src/openapi/schemas/content.yaml b/src/openapi/schemas/content.yaml index 4b33032..1d91d6d 100644 --- a/src/openapi/schemas/content.yaml +++ b/src/openapi/schemas/content.yaml @@ -23,6 +23,10 @@ components: enum: [TimelineTimelineItem, TimelineTimelineCursor, TimelineTimelineModule] + CursorType: + type: string + enum: [Top, Bottom, ShowMore, ShowMoreThreads, Gap] # Gap??? + TimelineTimelineItem: required: - "__typename" @@ -85,8 +89,7 @@ components: itemType: $ref: "#/components/schemas/ContentEntryType" # null | TimelineTimelineCursor cursorType: - type: string - enum: [Top, Bottom, ShowMore, ShowMoreThreads, Gap] # Gap??? + $ref: "#/components/schemas/CursorType" value: type: string