From 1cb81bf3e6d7c0610b9547547f319fbe3c26380a Mon Sep 17 00:00:00 2001 From: Julien Date: Fri, 13 Dec 2024 17:01:58 +0100 Subject: [PATCH] fix(docs): simplify JSON schema of job qgis-finder --- .../jobs/qgis-installation-finder.json | 51 +++++++++---------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/docs/schemas/scenario/jobs/qgis-installation-finder.json b/docs/schemas/scenario/jobs/qgis-installation-finder.json index ff235329..50e01e27 100644 --- a/docs/schemas/scenario/jobs/qgis-installation-finder.json +++ b/docs/schemas/scenario/jobs/qgis-installation-finder.json @@ -1,35 +1,34 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/qgis-deployment/qgis-deployment-toolbelt-cli/raw/main/docs/schemas/scenario/jobs/qgis-installation-finder.json", - "description": "Job in charge of findind installed QGIS version on computer.", + "description": "Job in charge of finding installed QGIS version on computer.", "title": "QGIS installation finder", "type": "object", - "items": { - "properties": { - "version_priority": { - "default": "", - "description": "Define QGIS version priority for search.", - "type": "array", - "items": { - "type": "string" - } - }, - "if_not_found": { - "default": "warning", - "description": "Behavior if no QGIS installation found.", - "enum": [ - "warning", - "error" - ], + "properties": { + "version_priority": { + "default": "", + "description": "Define QGIS version priority for search.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + }, + "if_not_found": { + "default": "warning", + "description": "Behavior if no QGIS installation found.", + "enum": [ + "warning", + "error" + ], + "type": "string" + }, + "search_paths": { + "default": "", + "description": "Define search paths for QGIS installation.", + "type": "array", + "items": { "type": "string" - }, - "search_paths": { - "default": "", - "description": "Define search paths for QGIS installation.", - "type": "array", - "items": { - "type": "string" - } } } }