Node.js based forum software built for the modern web
refactor(openapi): update TopicObject component to reference TopicObjectSlim in its schema
Julian Lamfb3f3f729f16
diff --git a/public/openapi/components/schemas/TopicObject.yaml b/public/openapi/components/schemas/TopicObject.yamlindex 45114a696b..653c0d3c53 100644--- a/public/openapi/components/schemas/TopicObject.yaml+++ b/public/openapi/components/schemas/TopicObject.yaml@@ -1,62 +1,21 @@TopicObject:allOf:+ - $ref: '#/TopicObjectSlim'- type: objectproperties:- tid:- type: number- description: A topic identifier- uid:- type: number- description: A user identifier- cid:- type: number- description: A category identifier- mainPid:- type: number- description: The post id of the first post in this topic (also called the "original post")title:type: stringslug:type: string- timestamp:- type: numberlastposttime:type: number- postcount:- type: number- viewcount:- type: number- postercount:- type: numberteaserPid:oneOf:- type: number- type: stringnullable: true- upvotes:- type: number- downvotes:- type: number- deleted:- type: number- locked:- type: number- pinned:- type: number- description: Whether or not this particular topic is pinned to the top of the- category- deleterUid:- type: numbertitleRaw:type: string- timestampISO:- type: string- description: An ISO 8601 formatted date string (complementing `timestamp`)- lastposttimeISO:- type: string- description: An ISO 8601 formatted date string (complementing `lastposttime`)- votes:- type: numberthumbs:type: arrayitems: