Adding ui-json schemas (#188)
This commit is contained in:
20
source/resource/ui/general/variable.json
Normal file
20
source/resource/ui/general/variable.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"title": "Variable",
|
||||
"description": "A variable is a reference to a value that can be used in the UI.",
|
||||
"type": "string",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"pattern": "^\\$[a-zA-Z0-9_]+$"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"pattern": "^#[a-zA-Z0-9_]+$"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"pattern": "^\\(.*\\)$"
|
||||
}
|
||||
],
|
||||
"examples": ["$variable", "($variable)"]
|
||||
}
|
||||
Reference in New Issue
Block a user