Skip to content

Node.js based forum software built for the modern web

fix: side-effects from adding toPid to post intFields (now removed)

Julian Lamb011595198a8
diff --git a/public/openapi/components/schemas/PostObject.yaml b/public/openapi/components/schemas/PostObject.yaml
index ef5726caac..f6194dd75c 100644
--- a/public/openapi/components/schemas/PostObject.yaml
+++ b/public/openapi/components/schemas/PostObject.yaml
@@ -10,6 +10,7 @@ PostObject:
toPid:
type: number
description: The post that this post is in reply to
+ nullable: true
content:
type: string
uid:
diff --git a/public/openapi/read/topic/topic_id.yaml b/public/openapi/read/topic/topic_id.yaml
index efc2c310ae..20ef21a031 100644
--- a/public/openapi/read/topic/topic_id.yaml
+++ b/public/openapi/read/topic/topic_id.yaml
@@ -59,9 +59,6 @@ get:
tid:
type: number
description: A topic identifier
- toPid:
- type: number
- description: The post that this post is in reply to
content:
type: string
timestamp:
@@ -87,13 +84,6 @@ get:
type: string
index:
type: number
- parent:
- type: object
- properties:
- username:
- type: string
- displayname:
- type: string
user:
type: object
properties:
diff --git a/public/openapi/write/posts/pid.yaml b/public/openapi/write/posts/pid.yaml
index 1f5f9eb4a2..593a7acd01 100644
--- a/public/openapi/write/posts/pid.yaml
+++ b/public/openapi/write/posts/pid.yaml
@@ -32,9 +32,6 @@ get:
tid:
type: number
description: A topic identifier
- toPid:
- type: number
- description: The post that this post is in reply to
content:
type: string
timestamp:
diff --git a/public/openapi/write/posts/pid/summary.yaml b/public/openapi/write/posts/pid/summary.yaml
index b28663edc7..b3ea4f07a1 100644
--- a/public/openapi/write/posts/pid/summary.yaml
+++ b/public/openapi/write/posts/pid/summary.yaml
@@ -41,6 +41,7 @@ get:
toPid:
type: number
description: The post that this post is in reply to
+ nullable: true
content:
type: string
uid: