Skip to content

Node.js based forum software built for the modern web

docs: add bookmarks to postobject in /world

Julian Lam07f9eda9fb49
diff --git a/public/openapi/components/schemas/PostObject.yaml b/public/openapi/components/schemas/PostObject.yaml
index 306a13f665..54dcc248c2 100644
--- a/public/openapi/components/schemas/PostObject.yaml
+++ b/public/openapi/components/schemas/PostObject.yaml
@@ -176,8 +176,6 @@ PostObject:
type: boolean
replies:
type: number
- bookmarks:
- type: number
PostDataObject:
description: The output as returned from `Posts.getPostsData`
allOf:
diff --git a/public/openapi/read/world.yaml b/public/openapi/read/world.yaml
index d4bf00a658..745d04348a 100644
--- a/public/openapi/read/world.yaml
+++ b/public/openapi/read/world.yaml
@@ -25,7 +25,12 @@ get:
items:
type: string
posts:
- $ref: ../components/schemas/PostsObject.yaml#/PostsObject
+ allOf:
+ - $ref: ../components/schemas/PostsObject.yaml#/PostsObject
+ - type: object
+ properties:
+ bookmarks:
+ type: number
showThumbs:
type: boolean
showTopicTools: