Skip to content

Node.js based forum software built for the modern web

fix: use reference object for post summary v3 api call

Julian Lam2a58d0996d6b
diff --git a/public/openapi/write/posts/pid/summary.yaml b/public/openapi/write/posts/pid/summary.yaml
index 29d46c4129..59d5599065 100644
--- a/public/openapi/write/posts/pid/summary.yaml
+++ b/public/openapi/write/posts/pid/summary.yaml
@@ -31,40 +31,4 @@ get:
status:
$ref: ../../../components/schemas/Status.yaml#/Status
response:
- type: object
- properties:
- pid:
- type: number
- tid:
- type: number
- description: A topic identifier
- content:
- type: string
- uid:
- type: number
- description: A user identifier
- timestamp:
- type: number
- deleted:
- type: number
- upvotes:
- type: number
- downvotes:
- type: number
- replies:
- type: number
- votes:
- type: number
- timestampISO:
- type: string
- user:
- type: object
- additionalProperties: {}
- topic:
- type: object
- additionalProperties: {}
- category:
- type: object
- additionalProperties: {}
- isMainPost:
- type: boolean
\ No newline at end of file
+ $ref: ../../../components/schemas/PostObject.yaml#/PostObject