Skip to content

Commit

Permalink
fix(docs): simplify JSON schema of job qgis-finder (#601)
Browse files Browse the repository at this point in the history
Following up of #600 

Before:

> after PR #600



![](https://pad.oslandia.net/uploads/4e445daa-2e84-40f1-9573-ce24882dd97d.png)

- the schema does not matches structure, so validation is not really
working
- it's "visible" with missing tooltip when over on keywords


After this PR:


![](https://pad.oslandia.net/uploads/f2e76dd1-69f7-4a54-b5c2-956589df80eb.png)

See visible tooltips when mouse hover
  • Loading branch information
Guts authored Dec 13, 2024
2 parents a96826b + 1cb81bf commit cb99e2f
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions docs/schemas/scenario/jobs/qgis-installation-finder.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
Expand Down

0 comments on commit cb99e2f

Please sign in to comment.