Annotation 注解
注解
1. 结构声明
- TS Declaration
- JSON Schema
class Annotation extends BaseNode {
name: string;
description: string;
properties: Array<AnnotationProperty>;
applyTo: Array<'Entity' | 'Logic' | 'View' | 'ViewElement'>;
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"changedTime": {
"$ref": "#/definitions/long"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"properties": {
"type": "array",
"items": {
"$ref": "#/definitions/AnnotationProperty"
}
},
"applyTo": {
"type": "array",
"items": {
"type": "string",
"enum": [
"Entity",
"Logic",
"View",
"ViewElement"
]
}
}
},
"required": [
"name",
"description",
"properties",
"applyTo"
],
"additionalProperties": false
}