mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-17 03:12:07 +02:00
fix: schema changes for c926358d73
This commit is contained in:
@@ -1,3 +1,53 @@
|
||||
BanMuteArray:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
uid:
|
||||
type: number
|
||||
timestamp:
|
||||
type: number
|
||||
expire:
|
||||
type: number
|
||||
fromUid:
|
||||
type: number
|
||||
user:
|
||||
type: object
|
||||
properties:
|
||||
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:
|
||||
type: string
|
||||
uid:
|
||||
type: number
|
||||
description: A user identifier
|
||||
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"
|
||||
until:
|
||||
type: number
|
||||
untilReadable:
|
||||
type: string
|
||||
timestampReadable:
|
||||
type: string
|
||||
timestampISO:
|
||||
type: string
|
||||
reason:
|
||||
type: string
|
||||
get:
|
||||
tags:
|
||||
- users
|
||||
@@ -40,55 +90,9 @@ get:
|
||||
additionalProperties:
|
||||
description: Contextual data is added to this object (such as topic data, etc.)
|
||||
bans:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
uid:
|
||||
type: number
|
||||
timestamp:
|
||||
type: number
|
||||
expire:
|
||||
type: number
|
||||
fromUid:
|
||||
type: number
|
||||
user:
|
||||
type: object
|
||||
properties:
|
||||
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:
|
||||
type: string
|
||||
uid:
|
||||
type: number
|
||||
description: A user identifier
|
||||
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"
|
||||
until:
|
||||
type: number
|
||||
untilReadable:
|
||||
type: string
|
||||
timestampReadable:
|
||||
type: string
|
||||
timestampISO:
|
||||
type: string
|
||||
reason:
|
||||
type: string
|
||||
$ref: '#/BanMuteArray'
|
||||
mutes:
|
||||
$ref: '#/BanMuteArray'
|
||||
sessions:
|
||||
type: array
|
||||
items:
|
||||
|
||||
Reference in New Issue
Block a user