2023-10-24 00:31:52 +02:00
|
|
|
{
|
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
2023-11-07 04:04:26 +08:00
|
|
|
"title": "Element reference",
|
|
|
|
|
"description": "A reference to an element: using the following syntax: [element_name]@[namespace_reference].[element_name_reference]",
|
2023-10-24 00:31:52 +02:00
|
|
|
"type": "string",
|
2023-11-07 04:04:26 +08:00
|
|
|
"examples": ["button@minecraft", "button@minecraft.ui"],
|
2023-10-24 00:31:52 +02:00
|
|
|
"pattern": "^[a-zA-Z0-9_]*@[a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)?$"
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-11-07 04:04:26 +08:00
|
|
|
"title": "Element reference",
|
|
|
|
|
"description": "A reference to an element: using the following syntax: [namespace_reference].[element_name_reference]",
|
2023-10-24 00:31:52 +02:00
|
|
|
"type": "string",
|
2023-11-07 04:04:26 +08:00
|
|
|
"examples": ["button@minecraft", "button@minecraft.ui"],
|
2023-10-24 00:31:52 +02:00
|
|
|
"pattern": "[a-zA-Z0-9_]+(\\.[a-zA-Z0-9_]+)?$"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Variable reference",
|
|
|
|
|
"description": "A variable is a reference to a value that can be used in the UI.",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"anyOf": [
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^\\$[a-zA-Z0-9_]+$"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^#[a-zA-Z0-9_]+$"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"pattern": "^\\(.*\\)$"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|