fix(openapi): finished moving all category objects out

v1.18.x
Julian Lam 5 years ago
parent c939f8c66d
commit 23dd2727f2

@ -626,112 +626,17 @@ paths:
- type: object
properties:
category:
type: object
allOf:
- $ref: components/schemas/CategoryObject.yaml#/CategoryObject
- type: object
properties:
cid:
type: number
description: A category identifier
name:
type: string
description:
type: string
icon:
type: string
bgColor:
type: string
color:
type: string
slug:
type: string
parentCid:
type: number
description: The category identifier for the category that is the immediate
ancestor of the current category
topic_count:
type: number
description: The number of topics in the category
post_count:
type: number
description: The number of posts in the category
disabled:
type: number
order:
type: number
link:
type: string
numRecentReplies:
type: number
class:
type: string
imageClass:
type: string
timesClicked:
type: number
isSection:
type: number
totalPostCount:
type: number
description: The number of posts in the category
totalTopicCount:
type: number
description: The number of topics in the category
descriptionParsed:
type: string
tagWhitelist:
type: array
items: {}
unread-class:
type: string
parent:
type: object
properties:
cid:
type: number
description: A category identifier
name:
type: string
description:
type: string
icon:
type: string
bgColor:
type: string
color:
type: string
slug:
type: string
parentCid:
type: number
description: The category identifier for the category that is the immediate
ancestor of the current category
topic_count:
type: number
description: The number of topics in the category
post_count:
type: number
description: The number of posts in the category
disabled:
type: number
order:
type: number
link:
type: string
numRecentReplies:
type: number
class:
type: string
imageClass:
type: string
descriptionParsed:
type: string
isSection:
type: number
totalPostCount:
type: number
description: The number of posts in the category
totalTopicCount:
type: number
description: The number of topics in the category
$ref: components/schemas/CategoryObject.yaml#/CategoryObject
allCategories:
type: array
items:
@ -2475,53 +2380,10 @@ paths:
description: A collection of category data objects
type: array
items:
type: object
allOf:
- $ref: components/schemas/CategoryObject.yaml#/CategoryObject
- type: object
properties:
cid:
type: number
description: A category identifier
name:
type: string
description:
type: string
icon:
type: string
slug:
type: string
topic_count:
type: number
description: The number of topics in the category
order:
type: number
bgColor:
type: string
link:
type: string
class:
type: string
numRecentReplies:
type: number
color:
type: string
post_count:
type: number
description: The number of posts in the category
descriptionParsed:
type: string
parentCid:
type: number
description: The category identifier for the category that is the immediate
ancestor of the current category
disabled:
type: number
isSection:
type: number
totalPostCount:
type: number
description: The number of posts in the category
totalTopicCount:
type: number
description: The number of topics in the category
tagWhitelist:
type: array
items: {}
@ -2530,53 +2392,10 @@ paths:
children:
type: array
items:
type: object
allOf:
- $ref: components/schemas/CategoryObject.yaml#/CategoryObject
- type: object
properties:
cid:
type: number
description: A category identifier
name:
type: string
description:
type: string
icon:
type: string
slug:
type: string
topic_count:
type: number
description: The number of topics in the category
order:
type: number
bgColor:
type: string
link:
type: string
class:
type: string
numRecentReplies:
type: number
color:
type: string
post_count:
type: number
description: The number of posts in the category
parentCid:
type: number
description: The category identifier for the category that is the immediate
ancestor of the current category
disabled:
type: number
isSection:
type: number
totalPostCount:
type: number
description: The number of posts in the category
totalTopicCount:
type: number
description: The number of topics in the category
descriptionParsed:
type: string
tagWhitelist:
type: array
items: {}
@ -2584,62 +2403,18 @@ paths:
type: string
children:
type: array
items: {}
items:
$ref: components/schemas/CategoryObject.yaml#/CategoryObject
parent:
type: object
allOf:
- $ref: components/schemas/CategoryObject.yaml#/CategoryObject
- type: object
properties:
link:
type: string
class:
type: string
icon:
type: string
description:
type: string
order:
type: number
topic_count:
type: number
description: The number of topics in the category
name:
type: string
cid:
type: number
description: A category identifier
post_count:
type: number
description: The number of posts in the category
numRecentReplies:
type: number
bgColor:
type: string
slug:
type: string
color:
type: string
disabled:
type: number
descriptionParsed:
type: string
isSection:
type: number
parentCid:
type: number
description: The category identifier for the category that is the immediate
ancestor of the current category
totalPostCount:
type: number
description: The number of posts in the category
totalTopicCount:
type: number
description: The number of topics in the category
tagWhitelist:
type: array
items: {}
unread-class:
type: string
imageClass:
type: string
posts:
type: array
items:
@ -6480,53 +6255,9 @@ paths:
application/json:
schema:
allOf:
- $ref: components/schemas/CategoryObject.yaml#/CategoryObject
- type: object
properties:
link:
type: string
class:
type: string
icon:
type: string
description:
type: string
order:
type: number
topic_count:
type: number
description: The number of topics in the category
name:
type: string
cid:
type: number
description: A category identifier
post_count:
type: number
description: The number of posts in the category
numRecentReplies:
type: number
bgColor:
type: string
slug:
type: string
color:
type: string
parentCid:
type: number
description: The category identifier for the category that is the immediate
ancestor of the current category
disabled:
type: number
isSection:
type: number
totalPostCount:
type: number
description: The number of posts in the category
totalTopicCount:
type: number
description: The number of topics in the category
descriptionParsed:
type: string
tagWhitelist:
type: array
items: {}
@ -6534,7 +6265,8 @@ paths:
type: string
children:
type: array
items: {}
items:
$ref: components/schemas/CategoryObject.yaml#/CategoryObject
topics:
type: array
items:
@ -6787,53 +6519,9 @@ paths:
application/json:
schema:
allOf:
- $ref: components/schemas/CategoryObject.yaml#/CategoryObject
- type: object
properties:
cid:
type: number
description: A category identifier
name:
type: string
description:
type: string
icon:
type: string
slug:
type: string
topic_count:
type: number
description: The number of topics in the category
order:
type: number
bgColor:
type: string
link:
type: string
class:
type: string
numRecentReplies:
type: number
color:
type: string
post_count:
type: number
description: The number of posts in the category
descriptionParsed:
type: string
parentCid:
type: number
description: The category identifier for the category that is the immediate
ancestor of the current category
disabled:
type: number
isSection:
type: number
totalPostCount:
type: number
description: The number of posts in the category
totalTopicCount:
type: number
description: The number of topics in the category
tagWhitelist:
type: array
items: {}
@ -6841,7 +6529,8 @@ paths:
type: string
children:
type: array
items: {}
items:
$ref: components/schemas/CategoryObject.yaml#/CategoryObject
topics:
type: array
items:

Loading…
Cancel
Save