Files
cocos4/scripts/module-division/tools/division-config-schema.json
T
Leslie Leigh b3733bf1c8 md 2.1 (#5122)
* md 2.1

* update
2019-08-09 00:58:00 -05:00

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"
}