From 1949d20a87a46dcdd6e4cd83f2ad8b4f7db9e0bf Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 2 Dec 2020 17:22:57 -0500 Subject: [PATCH] fix: spec --- public/openapi/components/schemas/TopicObject.yaml | 8 ++++++++ public/openapi/read/topic/topic_id.yaml | 8 ++++++++ public/openapi/read/unread.yaml | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/public/openapi/components/schemas/TopicObject.yaml b/public/openapi/components/schemas/TopicObject.yaml index 2e5085158f..45114a696b 100644 --- a/public/openapi/components/schemas/TopicObject.yaml +++ b/public/openapi/components/schemas/TopicObject.yaml @@ -57,6 +57,14 @@ TopicObject: description: An ISO 8601 formatted date string (complementing `lastposttime`) votes: type: number + thumbs: + type: array + items: + type: object + properties: + url: + type: string + description: Relative path to the topic thumbnail category: type: object properties: diff --git a/public/openapi/read/topic/topic_id.yaml b/public/openapi/read/topic/topic_id.yaml index 67f7ef3096..2dab408fa6 100644 --- a/public/openapi/read/topic/topic_id.yaml +++ b/public/openapi/read/topic/topic_id.yaml @@ -46,6 +46,14 @@ get: type: array items: $ref: ../../components/schemas/TagObject.yaml#/TagObject + thumbs: + type: array + items: + type: object + properties: + url: + type: string + description: Relative path to the topic thumbnail posts: type: array items: diff --git a/public/openapi/read/unread.yaml b/public/openapi/read/unread.yaml index e2b48faee9..8fa3be8c9c 100644 --- a/public/openapi/read/unread.yaml +++ b/public/openapi/read/unread.yaml @@ -35,6 +35,14 @@ get: nullable: true titleRaw: type: string + thumbs: + type: array + items: + type: object + properties: + url: + type: string + description: Relative path to the topic thumbnail category: type: object properties: