From 58f9d3a4836ebad966d3363efdd1c917d308db30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Fri, 14 Apr 2023 04:40:18 +0900 Subject: [PATCH] move MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- openapi/openapi-3.0.yaml | 84 ++++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/openapi/openapi-3.0.yaml b/openapi/openapi-3.0.yaml index d721ba0..7edeefa 100644 --- a/openapi/openapi-3.0.yaml +++ b/openapi/openapi-3.0.yaml @@ -433,6 +433,48 @@ components: responseObjects: type: object # todo + # ================= Instruction ================= + + InstructionUnion: + oneOf: + - $ref: "#/components/schemas/TimelineAddEntries" + discriminator: + propertyName: type + mapping": # deprecated + TimelineAddEntries: "#/components/schemas/TimelineAddEntries" + + InstructionType: + type: string + enum: [TimelineAddEntries] + + TimelineAddEntries: + required: + - type + - entries + properties: + type: + type: string + $ref: "#/components/schemas/InstructionType" # TimelineAddEntries + entries: + type: array + items: + $ref: "#/components/schemas/TimelineAddEntry" + + TimelineAddEntry: + required: + - "content" + - "entryId" + - "sortIndex" + properties: + content: + $ref: "#/components/schemas/ContentUnion" + entryId: + type: string + pattern: '^[a-z\-]+[0-9]+$' + sortIndex: + type: string + pattern: "[0-9]+$" + # ================= Content ================= ContentUnion: oneOf: @@ -499,48 +541,6 @@ components: type: string # enum $ref: "#/components/schemas/ContentEntryType" # TimelineTimelineCursor - # ================= Instruction ================= - - InstructionUnion: - oneOf: - - $ref: "#/components/schemas/TimelineAddEntries" - discriminator: - propertyName: type - mapping": # deprecated - TimelineAddEntries: "#/components/schemas/TimelineAddEntries" - - InstructionType: - type: string - enum: [TimelineAddEntries] - - TimelineAddEntries: - required: - - type - - entries - properties: - type: - type: string - $ref: "#/components/schemas/InstructionType" # TimelineAddEntries - entries: - type: array - items: - $ref: "#/components/schemas/TimelineAddEntry" - - TimelineAddEntry: - required: - - "content" - - "entryId" - - "sortIndex" - properties: - content: - $ref: "#/components/schemas/ContentUnion" - entryId: - type: string - pattern: '^[a-z\-]+[0-9]+$' - sortIndex: - type: string - pattern: "[0-9]+$" - # ================= ContentItem ================= ContentItemType: type: string