Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion rust/agama-lib/share/profile.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down
1 change: 1 addition & 0 deletions rust/agama-utils/src/api/question.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
Expand Down
Loading