fix: add back schema changes for 179faa2270 and c3920ccb10

This commit is contained in:
Julian Lam
2023-01-25 16:55:56 -05:00
parent 9b06d41564
commit ddda84b3d6
2 changed files with 58 additions and 0 deletions

View File

@@ -193,6 +193,9 @@ get:
description: An ISO 8601 formatted date string (complementing `timestamp`)
pid:
type: number
index:
type: number
description: The index of the post
topic:
type: object
properties:
@@ -200,6 +203,32 @@ get:
type: string
title:
type: string
user:
type: object
properties:
uid:
type: number
example: 1
username:
type: string
example: Dragon Fruit
userslug:
type: string
example: dragon-fruit
picture:
type: string
example: 'https://images.unsplash.com/photo-1560070094-e1f2ddec4337?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=256&h=256&q=80'
nullable: true
displayname:
type: string
description: This is either username or fullname depending on forum and user settings
example: Dragon Fruit
'icon:text':
type: string
example: D
'icon:bgColor':
type: string
example: '#9c27b0'
imageClass:
type: string
- $ref: ../components/schemas/Pagination.yaml#/Pagination

View File

@@ -195,6 +195,9 @@ get:
description: An ISO 8601 formatted date string (complementing `timestamp`)
pid:
type: number
index:
type: number
description: The index of the post
topic:
type: object
properties:
@@ -202,6 +205,32 @@ get:
type: string
title:
type: string
user:
type: object
properties:
uid:
type: number
example: 1
username:
type: string
example: Dragon Fruit
userslug:
type: string
example: dragon-fruit
picture:
type: string
example: 'https://images.unsplash.com/photo-1560070094-e1f2ddec4337?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=256&h=256&q=80'
nullable: true
displayname:
type: string
description: This is either username or fullname depending on forum and user settings
example: Dragon Fruit
'icon:text':
type: string
example: D
'icon:bgColor':
type: string
example: '#9c27b0'
imageClass:
type: string
- $ref: ../components/schemas/Pagination.yaml#/Pagination