Plugins: Ensure plugin dependency field in plugin.json does not require version (#90142)
non required + pattern
This commit is contained in:
@@ -179,7 +179,7 @@
|
|||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "Plugin dependency. Used to display information about plugin dependencies in the Grafana UI.",
|
"description": "Plugin dependency. Used to display information about plugin dependencies in the Grafana UI.",
|
||||||
"required": ["id", "name", "type", "version"],
|
"required": ["id", "name", "type"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {
|
"id": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -193,7 +193,8 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"version": {
|
"version": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user