NewMap Map 构造器
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface NewMap {
"concept": "NewMap", // 产品概念
"typeAnnotation": TypeAnnotation, // 类型
"keys": Array<LogicItem>, // 键
"values": Array<LogicItem>, // 键对应的值
}
class NewMapTreeNode {
ConceptEnum concept; // 产品概念
TypeAnnotationTreeNode typeAnnotation; // 类型
List<LogicItemTreeNode> keys; // 键
List<LogicItemTreeNode> values; // 键对应的值
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/NewMap",
"definitions": {
"NewMap": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "NewMap"
},
"typeAnnotation": {
"$ref": "#/definitions/TypeAnnotation"
},
"keys": {
"type": "array",
"items": {
"$ref": "#/definitions/LogicItem"
}
},
"values": {
"type": "array",
"items": {
"$ref": "#/definitions/LogicItem"
}
}
},
"required": [
"concept",
"typeAnnotation",
"keys",
"values"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "NewMap",
"typeAnnotation": null,
"keys": [],
"values": []
}
concept: NewMap
typeAnnotation: null
keys: []
values: []