From a5552321cfde096081b448bff342470e426f5f61 Mon Sep 17 00:00:00 2001 From: Blake Erickson Date: Mon, 20 Jun 2022 13:33:33 -0500 Subject: [PATCH] DEV: Fix flakey site.json rswag specs (#17161) The category description fields as part of the rswag specs for the site.json endpoint were flakey. Removing the `required` attribute allows us to still document that these fields exists, but that depending on certain site settings they may not be present in the response. --- .../api/schemas/json/site_response.json | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/spec/requests/api/schemas/json/site_response.json b/spec/requests/api/schemas/json/site_response.json index 4eaf18b93c9..62055ef4b51 100644 --- a/spec/requests/api/schemas/json/site_response.json +++ b/spec/requests/api/schemas/json/site_response.json @@ -502,13 +502,22 @@ "type": "integer" }, "description": { - "type": "string" + "type": [ + "string", + "null" + ] }, "description_text": { - "type": "string" + "type": [ + "string", + "null" + ] }, "description_excerpt": { - "type": "string" + "type": [ + "string", + "null" + ] }, "topic_url": { "type": "string" @@ -636,9 +645,6 @@ "topic_count", "post_count", "position", - "description", - "description_text", - "description_excerpt", "topic_url", "read_restricted", "permission",