From b272c56d1a3dd84fcbbd27db1bf61a03c3b3ca5d Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sat, 25 Mar 2023 19:24:00 +1100 Subject: Ajv and openapi spec use different versions of typescript json schema?????? --- assets/openapi.json | 14 ++++++-------- assets/schemas.json | 20 ++++++++++++++++---- 2 files changed, 22 insertions(+), 12 deletions(-) (limited to 'assets') 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" -- cgit 1.5.1