From 4c6b1e8e16a1f44dc7c5f9abd74c0615d0e4e51c Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Wed, 19 Apr 2023 01:24:51 +1000 Subject: Fix UserRelationsResponse schema --- assets/openapi.json | 53 +++++++++++++++++++++++++++-------------------------- assets/schemas.json | 52 ++++++++++++++++++++++++++-------------------------- 2 files changed, 53 insertions(+), 52 deletions(-) (limited to 'assets') diff --git a/assets/openapi.json b/assets/openapi.json index 64dc53c0..2dc78741 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -7606,33 +7606,34 @@ ] }, "UserRelationsResponse": { - "type": "object", - "properties": { - "object": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - } + "type": "array", + "items": { + "additionalProperties": false, + "type": "object", + "properties": { + "id": { + "type": "string" }, - "additionalProperties": false - } - }, - "required": [ - "object" - ] + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "public_flags": { + "type": "integer" + } + }, + "required": [ + "discriminator", + "id", + "public_flags", + "username" + ] + } }, "WebAuthnCreateResponse": { "type": "object", diff --git a/assets/schemas.json b/assets/schemas.json index 2c2abe8f..dc25cacd 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -485211,34 +485211,34 @@ "$schema": "http://json-schema.org/draft-07/schema#" }, "UserRelationsResponse": { - "type": "object", - "properties": { - "object": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - } + "type": "array", + "items": { + "additionalProperties": false, + "type": "object", + "properties": { + "id": { + "type": "string" }, - "additionalProperties": false - } + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "public_flags": { + "type": "integer" + } + }, + "required": [ + "discriminator", + "id", + "public_flags", + "username" + ] }, - "additionalProperties": false, - "required": [ - "object" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ -- cgit 1.5.1