fix: final schema changes

This commit is contained in:
Julian Lam
2023-01-30 11:48:01 -05:00
parent 69bfabb917
commit 1dcb8c2f29
4 changed files with 79 additions and 79 deletions

View 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

View File

@@ -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

View File

@@ -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

View File

@@ -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: