summary refs log tree commit diff
path: root/assets
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-03-25 19:24:00 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-03-25 19:24:00 +1100
commitb272c56d1a3dd84fcbbd27db1bf61a03c3b3ca5d (patch)
tree64a559339de1ea93f55001f594165a503662ff79 /assets
parentMerge branch 'master' of github.com:fosscord/fosscord-server (diff)
downloadserver-b272c56d1a3dd84fcbbd27db1bf61a03c3b3ca5d.tar.xz
Ajv and openapi spec use different versions of typescript json schema??????
Diffstat (limited to 'assets')
-rw-r--r--assets/openapi.json14
-rw-r--r--assets/schemas.json20
2 files changed, 22 insertions, 12 deletions
diff --git a/assets/openapi.json b/assets/openapi.json

index 069eaced..7e1f3cac 100644 --- a/assets/openapi.json +++ b/assets/openapi.json
@@ -20,15 +20,13 @@ } }, "components": { - "securitySchemes": [ - { - "bearer": { - "type": "http", - "scheme": "bearer", - "description": "Bearer/Bot prefixes are not required." - } + "securitySchemes": { + "bearer": { + "type": "http", + "scheme": "bearer", + "description": "Bearer/Bot prefixes are not required." } - ], + }, "schemas": { "SelectProtocolSchema": { "type": "object", diff --git a/assets/schemas.json b/assets/schemas.json
index a0c6d173..3c7e60a8 100644 --- a/assets/schemas.json +++ b/assets/schemas.json
@@ -26292,8 +26292,14 @@ "type": "boolean" }, "mute_config": { - "nullable": true, - "$ref": "#/definitions/MuteConfig" + "anyOf": [ + { + "$ref": "#/definitions/MuteConfig" + }, + { + "type": "null" + } + ] }, "muted": { "type": "boolean" @@ -28417,8 +28423,14 @@ "type": "boolean" }, "custom_status": { - "nullable": true, - "$ref": "#/definitions/CustomStatus" + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ] }, "default_guilds_restricted": { "type": "boolean"