test: fix spec for topic thumbs

v1.18.x
Julian Lam 4 years ago
parent 1d9ade4c36
commit 4c078084dc

@ -5,20 +5,6 @@ TopicObject:
properties: properties:
lastposttime: lastposttime:
type: number type: number
thumbs:
type: array
items:
type: object
properties:
id:
type: number
description: The topic id
name:
type: string
description: The topic thumbnail filename
url:
type: string
description: Relative path to the topic thumbnail
category: category:
type: object type: object
properties: properties:
@ -202,7 +188,8 @@ TopicObject:
- tid - tid
TopicObjectSlim: TopicObjectSlim:
description: The output of a call to `Topics.getTopicField`, these properties are always present no matter the fields passed in description: The output of a call to `Topics.getTopicField`, these properties are always present no matter the fields passed in
type: object allOf:
- type: object
properties: properties:
tid: tid:
type: number type: number
@ -265,3 +252,28 @@ TopicObjectSlim:
- type: number - type: number
- type: string - type: string
nullable: true nullable: true
thumbs:
type: array
items:
type: object
properties:
id:
type: number
description: The topic id
name:
type: string
description: The topic thumbnail filename
url:
type: string
description: Relative path to the topic thumbnail
- type: object
description: Optional properties that may or may not be present (except for `tid`, which is always present, and is only here as a hack to pass validation)
properties:
tid:
type: number
description: A topic identifier
numThumbs:
type: number
description: The number of thumbnails associated with this topic
required:
- tid

@ -46,14 +46,6 @@ get:
type: array type: array
items: items:
$ref: ../../components/schemas/TagObject.yaml#/TagObject $ref: ../../components/schemas/TagObject.yaml#/TagObject
thumbs:
type: array
items:
type: object
properties:
url:
type: string
description: Relative path to the topic thumbnail
posts: posts:
type: array type: array
items: items:

@ -35,14 +35,6 @@ get:
nullable: true nullable: true
titleRaw: titleRaw:
type: string type: string
thumbs:
type: array
items:
type: object
properties:
url:
type: string
description: Relative path to the topic thumbnail
category: category:
type: object type: object
properties: properties:

Loading…
Cancel
Save