From 81a19b169aa0cd6683e2892f6e017bf6f8d765e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Wed, 14 Jan 2026 13:03:13 +0000 Subject: [PATCH 1/2] Fix questions schema --- rust/agama-lib/share/profile.schema.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rust/agama-lib/share/profile.schema.json b/rust/agama-lib/share/profile.schema.json index d7f10b68cf..45bf2266fb 100644 --- a/rust/agama-lib/share/profile.schema.json +++ b/rust/agama-lib/share/profile.schema.json @@ -1008,9 +1008,14 @@ "description": "Action to use for the question.", "type": "string" }, + "answer": { + "description": "Action to use for the question. Prefer using \"action\" instead.", + "type": "string", + "deprecated": true + }, "value": { "title": "Predefined question value", - "description": "Value to use for the question.", + "description": "Value to use for the question (depending on the type of the question).", "type": "string" } } From 1e697504a48b0d13992262da67b30d8f8acf6d05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Wed, 14 Jan 2026 13:14:53 +0000 Subject: [PATCH 2/2] Allow using "answer" or "action" for the questions --- rust/agama-utils/src/api/question.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/agama-utils/src/api/question.rs b/rust/agama-utils/src/api/question.rs index e856d7351d..1075b29fa3 100644 --- a/rust/agama-utils/src/api/question.rs +++ b/rust/agama-utils/src/api/question.rs @@ -342,6 +342,7 @@ impl Action { /// on the question field. #[derive(Clone, Debug, Serialize, Deserialize, PartialEq, utoipa::ToSchema)] pub struct Answer { + #[serde(alias = "answer")] pub action: String, #[serde(alias = "password")] pub value: Option,