Skip to content

Commit

Permalink
docs: remove pattern from JSON schemas (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts authored Mar 27, 2024
2 parents 8189be1 + 435e055 commit 05a7d57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
17 changes: 5 additions & 12 deletions docs/schemas/profile/qgis_plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"properties": {
"folder_name": {
"description": "Name of the plugins's directory once installed in QGIS. Useful when name does not complies with filename conventions.",
"pattern": "^([a-zA-Z]:)?(\\\\[^<>:\"/\\\\|?*]+)+\\\\?$",
"type": "string"
},
"location": {
Expand Down Expand Up @@ -45,15 +44,10 @@
},
"repository_url_xml": {
"description": "URL to the plugin repository file (XML).",
"type": "string"
},
"type": {
"enum": [
"local",
"remote"
],
"deprecated": true,
"type": "string"
"type": "string",
"examples": [
"https://oslandia.gitlab.io/qgis/ngp-connect/plugins.xml"
]
},
"url": {
"description": "Direct URI (URL or local path) to download the plugin archive (.zip).",
Expand All @@ -65,10 +59,9 @@
]
},
"version": {
"description": "Plugin version to install.",
"description": "Version of the plugin to be installed.",
"maxLength": 14,
"minLength": 5,
"pattern": "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)$",
"type": "string"
}
}
Expand Down
3 changes: 1 addition & 2 deletions docs/schemas/profile/qgis_profile.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
},
"folder_name": {
"description": "Name of the profile's directory in QGIS.",
"pattern": "^([a-zA-Z]:)?(\\\\[^<>:\"/\\\\|?*]+)+\\\\?$",
"type": "string"
},
"icon": {
Expand All @@ -34,7 +33,7 @@
},
"name": {
"description": "Profile name without any special characters.",
"pattern": "^[_a-zA-Z][a-zA-Z0-9_-]*$"
"type": "string"
},
"plugins": {
"description": "Plugins installed with the profile.",
Expand Down

0 comments on commit 05a7d57

Please sign in to comment.