Comment 注释
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface Comment {
"concept": "Comment", // 产品概念
"value": string, // 注释内容
}
class CommentTreeNode {
ConceptEnum concept; // 产品概念
String value; // 注释内容
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/Comment",
"definitions": {
"Comment": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "Comment"
},
"value": {
"type": "string"
}
},
"required": [
"concept",
"value"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "Comment",
"value": null
}
concept: Comment
value: null