CompletionProperty 自动补全属性
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface CompletionProperty {
"concept": "CompletionProperty", // 产品概念
"name": string, // 自动补全属性名称
"value": string, // 自动补全属性的值
"label": string, // 自动补全属性标题
"description": string, // 自动补全属性描述
"typeAnnotation": TypeAnnotation, // 类型
"required": boolean, // 是否必填
"defaultValue": string, // 默认值,JSON 字符串
}
class CompletionPropertyTreeNode {
ConceptEnum concept; // 产品概念
String name; // 自动补全属性名称
String value; // 自动补全属性的值
String label; // 自动补全属性标题
String description; // 自动补全属性描述
TypeAnnotationTreeNode typeAnnotation; // 类型
boolean required; // 是否必填
String defaultValue; // 默认值,JSON 字符串
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/CompletionProperty",
"definitions": {
"CompletionProperty": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "CompletionProperty"
},
"name": {
"type": "string"
},
"value": {
"type": "string"
},
"label": {
"type": "string"
},
"description": {
"type": "string"
},
"typeAnnotation": {
"$ref": "#/definitions/TypeAnnotation"
},
"required": {
"type": "boolean"
},
"defaultValue": {
"type": "string"
}
},
"required": [
"concept",
"name",
"value",
"label",
"description",
"typeAnnotation",
"required",
"defaultValue"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "CompletionProperty",
"name": "age",
"value": "student.age",
"label": "标题",
"description": "描述",
"typeAnnotation": null,
"required": true,
"defaultValue": null
}
concept: CompletionProperty
name: age
value: student.age
label: 标题
description: 描述
typeAnnotation: null
required: true
defaultValue: null