mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
b3733bf1c8
* md 2.1 * update
160 lines
5.2 KiB
JSON
160 lines
5.2 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ItemGroup": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"description": {
|
|
"description": "Description.",
|
|
"type": "string"
|
|
},
|
|
"items": {
|
|
"description": "Items in this group.",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Simple"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SingleSelection"
|
|
}
|
|
]
|
|
},
|
|
"type": "array"
|
|
},
|
|
"required": {
|
|
"description": "Whether if at least one item shall be selected.",
|
|
"type": "boolean"
|
|
},
|
|
"text": {
|
|
"description": "Display text.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"SelectionOption": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"description": {
|
|
"description": "Description.",
|
|
"type": "string"
|
|
},
|
|
"entry": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Entry(s) of the option."
|
|
},
|
|
"text": {
|
|
"description": "Display text.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Simple": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"default": {
|
|
"description": "If true, this field indicates the item is marked as bundled by default.",
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"description": "Description.",
|
|
"type": "string"
|
|
},
|
|
"entry": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Entry(s) to the module."
|
|
},
|
|
"required": {
|
|
"description": "Whether if this item is required to provide.",
|
|
"type": "boolean"
|
|
},
|
|
"text": {
|
|
"description": "Display text.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"SingleSelection": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"default": {
|
|
"description": "If true, this field indicates the item is marked as bundled by default.",
|
|
"type": "boolean"
|
|
},
|
|
"defaultOption": {
|
|
"description": "Indicates the n-th option is selected by default if the item is marked as bundled.\nDefaults to 0.",
|
|
"type": "number"
|
|
},
|
|
"description": {
|
|
"description": "Description.",
|
|
"type": "string"
|
|
},
|
|
"options": {
|
|
"description": "Options.",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectionOption"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"required": {
|
|
"description": "Whether if this item is required to provide.",
|
|
"type": "boolean"
|
|
},
|
|
"text": {
|
|
"description": "Display text.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"properties": {
|
|
"$schema": {
|
|
"type": "string"
|
|
},
|
|
"groupOrItems": {
|
|
"description": "The group or items.",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Simple"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SingleSelection"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/ItemGroup"
|
|
}
|
|
]
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
|