From f2f7ae835d9b0582457b0f9b8024f1437a3ab851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Wed, 7 May 2025 13:48:57 +0100 Subject: [PATCH 1/3] fix(rust): validate the product/addons section --- rust/agama-lib/share/profile.schema.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/rust/agama-lib/share/profile.schema.json b/rust/agama-lib/share/profile.schema.json index 4192040698..9a704e62f9 100644 --- a/rust/agama-lib/share/profile.schema.json +++ b/rust/agama-lib/share/profile.schema.json @@ -209,6 +209,30 @@ "registrationUrl": { "title": "URL of the registration server", "type": "string" + }, + "addons": { + "title": "List of add-ons to activate", + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": ["id"], + "properties": { + "id": { + "title": "Add-on identifier", + "type": "string", + "examples": ["sle-ha"] + }, + "version": { + "title": "Version of the add-on", + "type": "string" + }, + "registrationCode": { + "title": "Add-on registration code", + "type": "string" + } + } + } } } }, From 624f60f3108060957edbd4b18b1b5611e198b095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Wed, 7 May 2025 13:53:47 +0100 Subject: [PATCH 2/3] docs(rust): update changes file --- rust/package/agama.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rust/package/agama.changes b/rust/package/agama.changes index 378fc28e75..3847c437b6 100644 --- a/rust/package/agama.changes +++ b/rust/package/agama.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 7 12:52:42 UTC 2025 - Imobach Gonzalez Sosa + +- Add validation of the product/addons section (gh#agama-project/agama#2336). + ------------------------------------------------------------------- Wed May 7 06:35:19 UTC 2025 - José Iván López González From 856c716269ae0b03ce6eb6be52314d74d300dfb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Wed, 7 May 2025 14:08:33 +0100 Subject: [PATCH 3/3] chore(rust): add a description for product/addons/version --- rust/agama-lib/share/profile.schema.json | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/agama-lib/share/profile.schema.json b/rust/agama-lib/share/profile.schema.json index 9a704e62f9..5a605a1338 100644 --- a/rust/agama-lib/share/profile.schema.json +++ b/rust/agama-lib/share/profile.schema.json @@ -225,6 +225,7 @@ }, "version": { "title": "Version of the add-on", + "description": "It is mandatory if there are multiple available versions", "type": "string" }, "registrationCode": {