From b7892413705ce0650e1d974494dfabfd3bbeb24a Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Sat, 21 Nov 2026 01:57:05 +0100 Subject: [PATCH] fix(api): list every question type in the API description The question types of the API description lacked the linear scale, the color and the ranking, although the API creates and returns questions of these types. A client generated from openapi.json could not create them and rejected forms that hold one. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Andy Scherzinger --- lib/ResponseDefinitions.php | 2 +- openapi.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/ResponseDefinitions.php b/lib/ResponseDefinitions.php index 15ed97324..17fac6599 100644 --- a/lib/ResponseDefinitions.php +++ b/lib/ResponseDefinitions.php @@ -44,7 +44,7 @@ * questionType?: string, * } * - * @psalm-type FormsQuestionType = "dropdown"|"multiple"|"multiple_unique"|"date"|"time"|"short"|"long"|"file"|"datetime"|"grid" + * @psalm-type FormsQuestionType = "dropdown"|"multiple"|"multiple_unique"|"date"|"time"|"short"|"long"|"file"|"datetime"|"grid"|"linearscale"|"color"|"ranking" * @psalm-type FormsQuestionGridCellType = "checkbox"|"number"|"radio" * * @psalm-type FormsQuestion = array{ diff --git a/openapi.json b/openapi.json index 4336a8c92..4e11633ce 100644 --- a/openapi.json +++ b/openapi.json @@ -618,7 +618,10 @@ "long", "file", "datetime", - "grid" + "grid", + "linearscale", + "color", + "ranking" ] }, "Share": {