mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugins: Update plugin.json schema to correctly validate version ranges and single digit versions (#90517)
This commit is contained in:
parent
58285e37a2
commit
fa2506300f
@ -170,7 +170,7 @@
|
|||||||
"grafanaDependency": {
|
"grafanaDependency": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Required Grafana version for this plugin. Validated using https://github.com/npm/node-semver.",
|
"description": "Required Grafana version for this plugin. Validated using https://github.com/npm/node-semver.",
|
||||||
"pattern": "^(<=|>=|<|>|=|~|\\^)?([0-9]+)(\\.[0-9x\\*]+)(\\.[0-9x\\*]+)?(\\s(<=|>=|<|=>)?([0-9]+)(\\.[0-9x]+)(\\.[0-9x]+))?(\\-[0-9]+)?$"
|
"pattern": "^(<=|>=|<|>|=|~|\\^)?([0-9]+)(\\.[0-9x\\*]+)?(\\.[0-9x\\*]+)?(\\s(<=|>=|<|=>)?([0-9]+)(\\.[0-9x\\*]+)?(\\.[0-9x\\*]+)?)?$"
|
||||||
},
|
},
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
Loading…
Reference in New Issue
Block a user