mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix(openapi): schema for new flags api
This commit is contained in:
@@ -4973,10 +4973,22 @@ paths:
|
|||||||
type: number
|
type: number
|
||||||
description: A user identifier
|
description: A user identifier
|
||||||
fields:
|
fields:
|
||||||
|
type: object
|
||||||
|
additionalProperties: {}
|
||||||
|
meta:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
state:
|
key:
|
||||||
type: string
|
type: string
|
||||||
|
value:
|
||||||
|
type: string
|
||||||
|
labelClass:
|
||||||
|
type: string
|
||||||
|
enum: ['default', 'primary', 'success', 'info', 'danger']
|
||||||
|
required:
|
||||||
|
- key
|
||||||
datetime:
|
datetime:
|
||||||
type: number
|
type: number
|
||||||
datetimeISO:
|
datetimeISO:
|
||||||
@@ -5008,6 +5020,11 @@ paths:
|
|||||||
`icon:text` for the user's auto-generated
|
`icon:text` for the user's auto-generated
|
||||||
icon
|
icon
|
||||||
example: "#f44336"
|
example: "#f44336"
|
||||||
|
required:
|
||||||
|
- uid
|
||||||
|
- datetime
|
||||||
|
- datetimeISO
|
||||||
|
- user
|
||||||
notes:
|
notes:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
|||||||
Reference in New Issue
Block a user