From 2fb9834821229bb3846b97aeb7eecb02de5fcfd6 Mon Sep 17 00:00:00 2001 From: Blake Erickson Date: Wed, 6 Oct 2021 13:36:11 -0600 Subject: [PATCH] DEV: Fix api docs for default calendar (#14539) Change the type for default_calendar to a string. The type specified for the default calendar in the api docs wasn't a valid type. The linting in the api docs repo reports: ``` `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null". ``` This linting currently is only in the `discourse_api_docs` repo. --- spec/requests/api/schemas/json/user_get_response.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/api/schemas/json/user_get_response.json b/spec/requests/api/schemas/json/user_get_response.json index 81d1662b483..d0f019cb720 100644 --- a/spec/requests/api/schemas/json/user_get_response.json +++ b/spec/requests/api/schemas/json/user_get_response.json @@ -777,7 +777,7 @@ "type": "boolean" }, "default_calendar": { - "type": "none_selected" + "type": "string" } }, "required": [