From 351d43bf228c894a3ecf421398a477891267b089 Mon Sep 17 00:00:00 2001 From: Andrew Shu Date: Mon, 1 Sep 2025 00:19:46 -0700 Subject: [PATCH] API: Update schema "required" properties To ensure API responses are consistent. Also most of these properties are expected from a consumer point of view, even if null. Mark Error schema properties nullable where not in required list. --- tildes/openapi_beta.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tildes/openapi_beta.yaml b/tildes/openapi_beta.yaml index 27116c4..48ec7e7 100644 --- a/tildes/openapi_beta.yaml +++ b/tildes/openapi_beta.yaml @@ -345,6 +345,9 @@ components: - exemplary - collapsed - collapsed_individual + - by_op + - by_me + - new_comment - voted - bookmarked - depth @@ -429,9 +432,11 @@ components: required: - message properties: - field: - type: string message: type: string + field: + type: string + nullable: true exception: type: string + nullable: true