Plugins: Ensure plugin dependency field in plugin.json does not require version (#90142)

non required + pattern
This commit is contained in:
Will Browne 2024-07-08 15:28:52 +01:00 committed by GitHub
parent 77a4869fca
commit cff9ecbd6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,7 +179,7 @@
"items": {
"type": "object",
"description": "Plugin dependency. Used to display information about plugin dependencies in the Grafana UI.",
"required": ["id", "name", "type", "version"],
"required": ["id", "name", "type"],
"properties": {
"id": {
"type": "string",
@ -193,7 +193,8 @@
"type": "string"
},
"version": {
"type": "string"
"type": "string",
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$"
}
}
}