From 1bf489de828640cd65f5418c7e9d315451eb87b1 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 4d658b910..39c0c01ce 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 694617425..71a0a62b2 100644 --- a/openapi.json +++ b/openapi.json @@ -608,7 +608,10 @@ "long", "file", "datetime", - "grid" + "grid", + "linearscale", + "color", + "ranking" ] }, "Share": {