Stage 0 (验证基础设施): - 5 层验证工具链 (tools/) + JSON Schema + validate-baseline.sh CI gate - P0-9: components-whitelist.yaml 单一来源 + parseFlowXml 消漂移 (create.ts tag 改消费 component-map.json) - E-2: docs/components.md 文档化 6 个 pass-through 组件 - P1-16: validate-baseline 接入 quality-gate.sh - L3 回归测试 (bs117 / bpmn-bs / antipattern-output) + mock LLM 库 P0-6 (user-in-the-loop): - form create --ai --preview: 提交前渲染字段表格 (CJK 对齐) + TTY 交互确认 (_preview.ts) workflow canvas 回归修复 (v0.22+ SSW 迁移引入): - parseFlowXml 命名空间无关 (flowNodes 缺口) - _autoLayout 无 DI 时合成完整 BPMNDiagram+Shape+Edge + bpmn2 归一化 (canvas 缺口) - 真实后端 + 浏览器设计器验证画布渲染; 详见 jnpf7-analysis §14 quality-gate 全绿: tsc 0 · vitest 483 · doc:check · baseline L1-L5 Co-Authored-By: Claude <[email protected]>
69 lines
2.4 KiB
JSON
69 lines
2.4 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft-07/schema#",
|
|
"title": "VisualAiModel (JNPF 7 official DTO mirror)",
|
|
"description": "Mirror of /home/ubuntu/ccWorkDir/jnpf/jnpf7/jnpf-java-ai-core/jnpf-common-ai-core/src/main/java/jnpf/model/ai/{VisualAiModel,AiFormModel,AiFormFieldModel,AiFormFieldOptionModel}.java — used to validate AI form generation outputs.",
|
|
"definitions": {
|
|
"AiFormFieldOptionModel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": { "type": "string" },
|
|
"fullName": { "type": "string" }
|
|
},
|
|
"required": ["id", "fullName"],
|
|
"additionalProperties": false
|
|
},
|
|
"AiFormFieldModel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fieldTitle": { "type": "string", "minLength": 1 },
|
|
"fieldName": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" },
|
|
"fieldDbType": {
|
|
"type": "string",
|
|
"enum": ["varchar", "text", "int", "bigint", "datetime", "date", "decimal", "boolean"]
|
|
},
|
|
"fieldComponent": {
|
|
"type": "string",
|
|
"description": "JNPF component key (24-component whitelist per AiConstants.java:23-25, plus relationForm for dacli)"
|
|
},
|
|
"fieldOptions": {
|
|
"type": "array",
|
|
"items": { "$ref": "#/definitions/AiFormFieldOptionModel" }
|
|
}
|
|
},
|
|
"required": ["fieldTitle", "fieldName", "fieldComponent"],
|
|
"additionalProperties": true
|
|
},
|
|
"AiFormModel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"tableTitle": { "type": "string", "minLength": 1 },
|
|
"tableName": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" },
|
|
"isMain": { "type": "boolean" },
|
|
"fields": {
|
|
"type": "array",
|
|
"items": { "$ref": "#/definitions/AiFormFieldModel" },
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"required": ["tableTitle", "tableName", "isMain", "fields"],
|
|
"additionalProperties": true
|
|
}
|
|
},
|
|
"type": "object",
|
|
"properties": {
|
|
"enCode": {
|
|
"type": "string",
|
|
"pattern": "^[a-zA-Z][a-zA-Z0-9]*$",
|
|
"description": "BS-56: no underscores (JNPF enforces camelCase)"
|
|
},
|
|
"fullName": { "type": "string", "minLength": 1, "maxLength": 50 },
|
|
"category": { "type": "string" },
|
|
"aiModelList": {
|
|
"type": "array",
|
|
"items": { "$ref": "#/definitions/AiFormModel" },
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"required": ["enCode", "fullName", "category", "aiModelList"],
|
|
"additionalProperties": true
|
|
} |