本仓 2026-08-12 从 ssw main (192.168.1.18:13300/ssw/ssw-mvp) 的 dacli/ subpath 抽取,作为独立仓托管到 gitea:3000/ssw/dacli.git。 - 工作树为 ssw main dacli subpath 最新版 (110 commit, 08-12) - 历史未带 ssw main 整体历史(避免大仓污染) - 此为新仓基线 commit,未来以本仓历史为主
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
|
|
} |