NewList list构造器
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface NewList {
"concept": "NewList", // 产品概念
"typeAnnotation": TypeAnnotation, // 类型
"items": Array<LogicItem>, // 成员表达式
}
class NewListTreeNode {
ConceptEnum concept; // 产品概念
TypeAnnotationTreeNode typeAnnotation; // 类型
List<LogicItemTreeNode> items; // 成员表达式
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/NewList",
"definitions": {
"NewList": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "NewList"
},
"typeAnnotation": {
"$ref": "#/definitions/TypeAnnotation"
},
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/LogicItem"
}
}
},
"required": [
"concept",
"typeAnnotation",
"items"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "NewList",
"typeAnnotation": null,
"items": []
}
concept: NewList
typeAnnotation: null
items: []