From a3dce463711b9193b1bfdabd97f100a4f00d6fcc Mon Sep 17 00:00:00 2001 From: Opliko Date: Thu, 28 Mar 2024 13:20:30 +0100 Subject: [PATCH] fix: adjust world schema --- public/openapi/read/world.yaml | 53 ++++++++++++++++++++++++++++++---- 1 file changed, 47 insertions(+), 6 deletions(-) diff --git a/public/openapi/read/world.yaml b/public/openapi/read/world.yaml index e693e80cb7..3cf3203ecb 100644 --- a/public/openapi/read/world.yaml +++ b/public/openapi/read/world.yaml @@ -17,8 +17,13 @@ get: application/json: schema: allOf: + - $ref: ../components/schemas/CategoryObject.yaml#/CategoryObject - type: object properties: + tagWhitelist: + type: array + items: + type: string topicCount: type: number topics: @@ -61,12 +66,48 @@ get: # type: array # items: # type: string - # feeds:disableRSS: - # type: number - # rssFeedUrl: - # type: string - # title: - # type: string + isWatched: + type: boolean + isTracked: + type: boolean + isNotWatched: + type: boolean + isIgnored: + type: boolean + feeds:disableRSS: + type: number + rssFeedUrl: + type: string + reputation:disabled: + type: number + title: + type: string + privileges: + type: object + properties: + topics:create: + type: boolean + topics:read: + type: boolean + topics:tag: + type: boolean + topics:schedule: + type: boolean + read: + type: boolean + posts:view_deleted: + type: boolean + cid: + type: string + uid: + type: number + description: A user identifier + editable: + type: boolean + view_deleted: + type: boolean + isAdminOrMod: + type: boolean # filters: # type: array # items: