mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-21 23:12:58 +01:00
fix: final schema changes
This commit is contained in:
23
public/openapi/components/schemas/NotificationFilters.yaml
Normal file
23
public/openapi/components/schemas/NotificationFilters.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
FiltersObject:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
filter:
|
||||
type: string
|
||||
selected:
|
||||
type: boolean
|
||||
count:
|
||||
type: number
|
||||
required:
|
||||
- name
|
||||
- filter
|
||||
FiltersArray:
|
||||
type: array
|
||||
items:
|
||||
anyOf:
|
||||
- $ref: '#/FiltersObject'
|
||||
- type: object
|
||||
properties:
|
||||
separator:
|
||||
type: boolean
|
||||
@@ -700,3 +700,53 @@ UserObjectACP:
|
||||
nullable: true
|
||||
ips:
|
||||
type: array
|
||||
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
|
||||
@@ -1,26 +1,3 @@
|
||||
FilterArray:
|
||||
oneOf:
|
||||
- type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
filter:
|
||||
type: string
|
||||
selected:
|
||||
type: boolean
|
||||
count:
|
||||
type: number
|
||||
required:
|
||||
- name
|
||||
- filter
|
||||
- type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
separator:
|
||||
type: boolean
|
||||
get:
|
||||
tags:
|
||||
- notifications
|
||||
@@ -92,13 +69,13 @@ get:
|
||||
readClass:
|
||||
type: string
|
||||
filters:
|
||||
$ref: '#/FilterArray'
|
||||
$ref: ../components/schemas/NotificationFilters.yaml#/FiltersArray
|
||||
regularFilters:
|
||||
$ref: '#/FilterArray'
|
||||
$ref: ../components/schemas/NotificationFilters.yaml#/FiltersArray
|
||||
moderatorFilters:
|
||||
$ref: '#/FilterArray'
|
||||
$ref: ../components/schemas/NotificationFilters.yaml#/FiltersArray
|
||||
selectedFilter:
|
||||
$ref: '#/FilterArray'
|
||||
$ref: ../components/schemas/NotificationFilters.yaml#/FiltersObject
|
||||
title:
|
||||
type: string
|
||||
- $ref: ../components/schemas/Pagination.yaml#/Pagination
|
||||
|
||||
@@ -1,53 +1,3 @@
|
||||
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
|
||||
@@ -90,9 +40,9 @@ get:
|
||||
additionalProperties:
|
||||
description: Contextual data is added to this object (such as topic data, etc.)
|
||||
bans:
|
||||
$ref: '#/BanMuteArray'
|
||||
$ref: ../../../components/schemas/UserObject.yaml#/BanMuteArray
|
||||
mutes:
|
||||
$ref: '#/BanMuteArray'
|
||||
$ref: ../../../components/schemas/UserObject.yaml#/BanMuteArray
|
||||
sessions:
|
||||
type: array
|
||||
items:
|
||||
|
||||
Reference in New Issue
Block a user