mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +01:00
refactor(openapi): update TopicObject component to reference TopicObjectSlim in its schema
This commit is contained in:
@@ -1,62 +1,21 @@
|
|||||||
TopicObject:
|
TopicObject:
|
||||||
allOf:
|
allOf:
|
||||||
|
- $ref: '#/TopicObjectSlim'
|
||||||
- type: object
|
- type: object
|
||||||
properties:
|
properties:
|
||||||
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:
|
title:
|
||||||
type: string
|
type: string
|
||||||
slug:
|
slug:
|
||||||
type: string
|
type: string
|
||||||
timestamp:
|
|
||||||
type: number
|
|
||||||
lastposttime:
|
lastposttime:
|
||||||
type: number
|
type: number
|
||||||
postcount:
|
|
||||||
type: number
|
|
||||||
viewcount:
|
|
||||||
type: number
|
|
||||||
postercount:
|
|
||||||
type: number
|
|
||||||
teaserPid:
|
teaserPid:
|
||||||
oneOf:
|
oneOf:
|
||||||
- type: number
|
- type: number
|
||||||
- type: string
|
- type: string
|
||||||
nullable: true
|
nullable: 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: number
|
|
||||||
titleRaw:
|
titleRaw:
|
||||||
type: string
|
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: number
|
|
||||||
thumbs:
|
thumbs:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
|||||||
Reference in New Issue
Block a user