From b011595198a80ef89a51941866f512f8d8773493 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 22 Feb 2024 10:08:44 -0500 Subject: [PATCH] fix: side-effects from adding toPid to post intFields (now removed) --- public/openapi/components/schemas/PostObject.yaml | 1 + public/openapi/read/topic/topic_id.yaml | 10 ---------- public/openapi/write/posts/pid.yaml | 3 --- public/openapi/write/posts/pid/summary.yaml | 1 + 4 files changed, 2 insertions(+), 13 deletions(-) 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: