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 - type: object
properties: properties:
category: category:
type: object allOf:
properties: - $ref: components/schemas/CategoryObject.yaml#/CategoryObject
cid: - type: object
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: properties:
cid: tagWhitelist:
type: number type: array
description: A category identifier items: {}
name: unread-class:
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 type: string
isSection: parent:
type: number $ref: components/schemas/CategoryObject.yaml#/CategoryObject
totalPostCount:
type: number
description: The number of posts in the category
totalTopicCount:
type: number
description: The number of topics in the category
allCategories: allCategories:
type: array type: array
items: items:
@ -2475,310 +2380,180 @@ paths:
description: A collection of category data objects description: A collection of category data objects
type: array type: array
items: items:
type: object allOf:
properties: - $ref: components/schemas/CategoryObject.yaml#/CategoryObject
cid: - type: object
type: number properties:
description: A category identifier tagWhitelist:
name: type: array
type: string items: {}
description: unread-class:
type: string type: string
icon: children:
type: string type: array
slug: items:
type: string allOf:
topic_count: - $ref: components/schemas/CategoryObject.yaml#/CategoryObject
type: number - type: object
description: The number of topics in the category properties:
order: tagWhitelist:
type: number type: array
bgColor: items: {}
type: string unread-class:
link: type: string
type: string children:
class: type: array
type: string items:
numRecentReplies: $ref: components/schemas/CategoryObject.yaml#/CategoryObject
type: number parent:
color: allOf:
type: string - $ref: components/schemas/CategoryObject.yaml#/CategoryObject
post_count: - type: object
type: number properties:
description: The number of posts in the category tagWhitelist:
descriptionParsed: type: array
type: string items: {}
parentCid: unread-class:
type: number type: string
description: The category identifier for the category that is the immediate posts:
ancestor of the current category type: array
disabled: items:
type: number type: object
isSection: properties:
type: number pid:
totalPostCount: type: number
type: number timestamp:
description: The number of posts in the category type: number
totalTopicCount: content:
type: number type: string
description: The number of topics in the category timestampISO:
tagWhitelist: type: string
type: array description: An ISO 8601 formatted date string (complementing `timestamp`)
items: {} user:
unread-class: type: object
type: string properties:
children: uid:
type: array type: number
items: description: A user identifier
type: object username:
properties: type: string
cid: description: A friendly name for a given user account
type: number userslug:
description: A category identifier type: string
name: description: An URL-safe variant of the username (i.e. lower-cased, spaces
type: string removed, etc.)
description: picture:
type: string nullable: true
icon: type: string
type: string icon:text:
slug: type: string
type: string description: A single-letter representation of a username. This is used in the
topic_count: auto-generated icon given to
type: number users without an avatar
description: The number of topics in the category icon:bgColor:
order: type: string
type: number description: A six-character hexadecimal colour code assigned to the user. This
bgColor: value is used in conjunction
type: string with `icon:text` for the user's
link: auto-generated icon
type: string example: "#f44336"
class: index:
type: string type: number
numRecentReplies: cid:
type: number type: number
color: description: A category identifier
type: string parentCid:
post_count: type: number
type: number description: The category identifier for the category that is the immediate
description: The number of posts in the category ancestor of the current category
parentCid: topic:
type: number type: object
description: The category identifier for the category that is the immediate properties:
ancestor of the current category slug:
disabled: type: string
type: number title:
isSection: type: string
type: number imageClass:
totalPostCount: type: string
type: number timesClicked:
description: The number of posts in the category type: number
totalTopicCount: posts:
type: number type: array
description: The number of topics in the category items:
descriptionParsed:
type: string
tagWhitelist:
type: array
items: {}
unread-class:
type: string
children:
type: array
items: {}
parent:
type: object type: object
properties: properties:
link: pid:
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 type: number
description: The number of posts in the category timestamp:
numRecentReplies:
type: number type: number
bgColor: content:
type: string
slug:
type: string type: string
color: timestampISO:
type: string type: string
disabled: description: An ISO 8601 formatted date string (complementing `timestamp`)
user:
type: object
properties:
uid:
type: number
description: A user identifier
username:
type: string
description: A friendly name for a given user account
userslug:
type: string
description: An URL-safe variant of the username (i.e. lower-cased, spaces
removed, etc.)
picture:
nullable: true
type: string
icon:text:
type: string
description: A single-letter representation of a username. This is used in the
auto-generated icon given to users
without an avatar
icon:bgColor:
type: string
description: A six-character hexadecimal colour code assigned to the user. This
value is used in conjunction with
`icon:text` for the user's
auto-generated icon
example: "#f44336"
index:
type: number type: number
descriptionParsed: cid:
type: string
isSection:
type: number type: number
description: A category identifier
parentCid: parentCid:
type: number type: number
description: The category identifier for the category that is the immediate description: The category identifier for the category that is the immediate
ancestor of the current category ancestor of the current category
totalPostCount: topic:
type: number type: object
description: The number of posts in the category properties:
totalTopicCount: slug:
type: number type: string
description: The number of topics in the category title:
tagWhitelist: type: string
type: array teaser:
items: {} type: object
unread-class: properties:
type: string url:
imageClass: type: string
type: string timestampISO:
posts: type: string
type: array description: An ISO 8601 formatted date string (complementing `timestamp`)
items: pid:
type: number
topic:
type: object type: object
properties: properties:
pid: slug:
type: number
timestamp:
type: number
content:
type: string type: string
timestampISO: title:
type: string type: string
description: An ISO 8601 formatted date string (complementing `timestamp`) imageClass:
user:
type: object
properties:
uid:
type: number
description: A user identifier
username:
type: string
description: A friendly name for a given user account
userslug:
type: string
description: An URL-safe variant of the username (i.e. lower-cased, spaces
removed, etc.)
picture:
nullable: true
type: string
icon:text:
type: string
description: A single-letter representation of a username. This is used in the
auto-generated icon given to
users without an avatar
icon:bgColor:
type: string
description: A six-character hexadecimal colour code assigned to the user. This
value is used in conjunction
with `icon:text` for the user's
auto-generated icon
example: "#f44336"
index:
type: number
cid:
type: number
description: A category identifier
parentCid:
type: number
description: The category identifier for the category that is the immediate
ancestor of the current category
topic:
type: object
properties:
slug:
type: string
title:
type: string
imageClass:
type: string
timesClicked:
type: number
posts:
type: array
items:
type: object
properties:
pid:
type: number
timestamp:
type: number
content:
type: string
timestampISO:
type: string
description: An ISO 8601 formatted date string (complementing `timestamp`)
user:
type: object
properties:
uid:
type: number
description: A user identifier
username:
type: string
description: A friendly name for a given user account
userslug:
type: string
description: An URL-safe variant of the username (i.e. lower-cased, spaces
removed, etc.)
picture:
nullable: true
type: string
icon:text:
type: string
description: A single-letter representation of a username. This is used in the
auto-generated icon given to users
without an avatar
icon:bgColor:
type: string
description: A six-character hexadecimal colour code assigned to the user. This
value is used in conjunction with
`icon:text` for the user's
auto-generated icon
example: "#f44336"
index:
type: number
cid:
type: number
description: A category identifier
parentCid:
type: number
description: The category identifier for the category that is the immediate
ancestor of the current category
topic:
type: object
properties:
slug:
type: string
title:
type: string
teaser:
type: object
properties:
url:
type: string
timestampISO:
type: string type: string
description: An ISO 8601 formatted date string (complementing `timestamp`)
pid:
type: number
topic:
type: object
properties:
slug:
type: string
title:
type: string
imageClass:
type: string
topics: topics:
type: array type: array
items: items:
@ -6480,53 +6255,9 @@ paths:
application/json: application/json:
schema: schema:
allOf: allOf:
- $ref: components/schemas/CategoryObject.yaml#/CategoryObject
- type: object - type: object
properties: 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: tagWhitelist:
type: array type: array
items: {} items: {}
@ -6534,7 +6265,8 @@ paths:
type: string type: string
children: children:
type: array type: array
items: {} items:
$ref: components/schemas/CategoryObject.yaml#/CategoryObject
topics: topics:
type: array type: array
items: items:
@ -6787,53 +6519,9 @@ paths:
application/json: application/json:
schema: schema:
allOf: allOf:
- $ref: components/schemas/CategoryObject.yaml#/CategoryObject
- type: object - type: object
properties: 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: tagWhitelist:
type: array type: array
items: {} items: {}
@ -6841,7 +6529,8 @@ paths:
type: string type: string
children: children:
type: array type: array
items: {} items:
$ref: components/schemas/CategoryObject.yaml#/CategoryObject
topics: topics:
type: array type: array
items: items:

Loading…
Cancel
Save