@qingflow-tech/qingflow-cli 1.1.43-beta.3 → 1.1.43-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
- package/pyproject.toml +1 -1
- package/skills/qingflow-app-form/SKILL.md +7 -5
- package/skills/qingflow-cli/reference/builder/30-schema-fields.md +14 -13
- package/src/qingflow_mcp/app_form_compat.py +11 -27
- package/src/qingflow_mcp/app_form_validator.py +201 -35
- package/src/qingflow_mcp/builder_facade/app_form.py +762 -148
- package/src/qingflow_mcp/builder_facade/app_form_schema.py +114 -3
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/complete.json +310 -245
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/address.json +82 -27
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/amount.json +85 -32
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/attachment.json +82 -30
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/code_block.json +113 -37
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/data_relation.json +87 -64
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/date.json +82 -27
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/datetime.json +82 -27
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/department.json +83 -28
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/email.json +82 -27
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/link.json +82 -27
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/long_text.json +82 -27
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/member.json +83 -28
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/multi_select.json +82 -27
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/number.json +85 -32
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/phone.json +82 -27
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/q_linker.json +95 -40
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/relation.json +100 -28
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/single_choice.json +82 -27
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/single_select.json +82 -27
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/subtable.json +212 -117
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/fields/text.json +82 -27
- package/src/qingflow_mcp/builder_facade/schemas/app_form/v1alpha1/summary.json +143 -161
- package/src/qingflow_mcp/builder_facade/service.py +3 -2
- package/src/qingflow_mcp/response_trim.py +2 -0
- package/src/qingflow_mcp/server_app_builder.py +2 -2
|
@@ -224,15 +224,71 @@
|
|
|
224
224
|
"type": "object"
|
|
225
225
|
},
|
|
226
226
|
"FieldCommon": {
|
|
227
|
+
"allOf": [
|
|
228
|
+
{
|
|
229
|
+
"if": {
|
|
230
|
+
"properties": {
|
|
231
|
+
"defaultType": {
|
|
232
|
+
"const": 2
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"required": [
|
|
236
|
+
"defaultType"
|
|
237
|
+
]
|
|
238
|
+
},
|
|
239
|
+
"then": {
|
|
240
|
+
"properties": {
|
|
241
|
+
"defaultValue": {
|
|
242
|
+
"type": "null"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"if": {
|
|
249
|
+
"properties": {
|
|
250
|
+
"defaultType": {
|
|
251
|
+
"const": 3
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"required": [
|
|
255
|
+
"defaultType"
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
"then": {
|
|
259
|
+
"properties": {
|
|
260
|
+
"defaultValue": {
|
|
261
|
+
"minLength": 1,
|
|
262
|
+
"type": [
|
|
263
|
+
"string",
|
|
264
|
+
"null"
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"anyOf": [
|
|
272
|
+
{
|
|
273
|
+
"required": [
|
|
274
|
+
"queId"
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"required": [
|
|
279
|
+
"name"
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
],
|
|
227
283
|
"description": "顶层业务字段的公共属性;字段类型由 TopField 的判别分支定义。",
|
|
228
284
|
"properties": {
|
|
229
|
-
"
|
|
230
|
-
"description": "
|
|
285
|
+
"beingRequired": {
|
|
286
|
+
"description": "该字段是否必填;缺失时保留已有字段当前值。",
|
|
231
287
|
"type": "boolean"
|
|
232
288
|
},
|
|
233
289
|
"defaultType": {
|
|
234
290
|
"default": 1,
|
|
235
|
-
"description": "
|
|
291
|
+
"description": "默认值类型,与 defaultValue 联动;1 表示静态值,2 表示关联/绑定值且 defaultValue 只能省略或为 null,3 表示公式值且提供 defaultValue 时必须为非空公式文本。省略 defaultType 但提供 defaultValue 时按 1 处理。",
|
|
236
292
|
"enum": [
|
|
237
293
|
1,
|
|
238
294
|
2,
|
|
@@ -242,39 +298,40 @@
|
|
|
242
298
|
},
|
|
243
299
|
"defaultValue": {
|
|
244
300
|
"$ref": "#/$defs/ScalarDefaultValue",
|
|
245
|
-
"description": "
|
|
246
|
-
},
|
|
247
|
-
"description": {
|
|
248
|
-
"description": "字段说明;null 或空字符串表示清空。",
|
|
249
|
-
"type": [
|
|
250
|
-
"string",
|
|
251
|
-
"null"
|
|
252
|
-
]
|
|
301
|
+
"description": "普通字段的默认值;后端 queDefaultValue 为字符串,因此数字等字面量也必须以字符串传入。defaultType 为 1 时表示静态文本,为 3 时表示公式文本,为 2 时不携带字面量默认值。表格、地址、附件、引用等结构化默认值必须放在具体字段 config.defaultValues。显式 null 表示清除默认值。"
|
|
253
302
|
},
|
|
254
303
|
"name": {
|
|
255
|
-
"description": "
|
|
304
|
+
"description": "字段展示名称;新增字段必填,已有字段可在携带 queId 时省略;同一父级内唯一。",
|
|
256
305
|
"minLength": 1,
|
|
257
306
|
"type": "string"
|
|
258
307
|
},
|
|
259
308
|
"queId": {
|
|
260
|
-
"description": "已有字段的后端 ID
|
|
309
|
+
"description": "已有字段的后端 ID;更新时用于精确定位并复用,新增字段通常省略。",
|
|
261
310
|
"minimum": 1,
|
|
262
311
|
"type": "integer"
|
|
263
312
|
},
|
|
264
|
-
"
|
|
265
|
-
"description": "
|
|
266
|
-
"type":
|
|
313
|
+
"questionDescription": {
|
|
314
|
+
"description": "字段说明;null 或空字符串表示清空。",
|
|
315
|
+
"type": [
|
|
316
|
+
"string",
|
|
317
|
+
"null"
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
"questionType": {
|
|
321
|
+
"description": "字段类型;具体可用值由当前字段详情 Schema 的判别分支约束。",
|
|
322
|
+
"type": "string"
|
|
267
323
|
},
|
|
268
324
|
"width": {
|
|
269
|
-
"description": "
|
|
270
|
-
"
|
|
271
|
-
|
|
325
|
+
"description": "字段在所在行的宽度百分比;只能选择 25、50、75 或 100。",
|
|
326
|
+
"enum": [
|
|
327
|
+
25,
|
|
328
|
+
50,
|
|
329
|
+
75,
|
|
330
|
+
100
|
|
331
|
+
],
|
|
272
332
|
"type": "integer"
|
|
273
333
|
}
|
|
274
334
|
},
|
|
275
|
-
"required": [
|
|
276
|
-
"name"
|
|
277
|
-
],
|
|
278
335
|
"type": "object"
|
|
279
336
|
},
|
|
280
337
|
"ReferenceDefaultValue": {
|
|
@@ -302,11 +359,9 @@
|
|
|
302
359
|
"type": "object"
|
|
303
360
|
},
|
|
304
361
|
"ScalarDefaultValue": {
|
|
305
|
-
"description": "
|
|
362
|
+
"description": "后端 queDefaultValue 支持的普通字段默认值;非空值必须是字符串,显式 null 表示清除默认值。数字和布尔值应先转换为字符串,对象和数组必须使用字段专用默认值配置。需要配置结构化默认值时,通过 AppForm Schema 查询能力传入当前 schema_version,并将字段的 questionType 作为 field_type 获取该字段类型的详细 Schema,再按其中的字段专用 config 定义填写。",
|
|
306
363
|
"type": [
|
|
307
364
|
"null",
|
|
308
|
-
"boolean",
|
|
309
|
-
"number",
|
|
310
365
|
"string"
|
|
311
366
|
]
|
|
312
367
|
}
|
|
@@ -322,12 +377,12 @@
|
|
|
322
377
|
"config": {
|
|
323
378
|
"$ref": "#/$defs/AddressConfig"
|
|
324
379
|
},
|
|
325
|
-
"
|
|
380
|
+
"questionType": {
|
|
326
381
|
"const": "address"
|
|
327
382
|
}
|
|
328
383
|
},
|
|
329
384
|
"required": [
|
|
330
|
-
"
|
|
385
|
+
"questionType"
|
|
331
386
|
]
|
|
332
387
|
}
|
|
333
388
|
],
|
|
@@ -1,15 +1,71 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$defs": {
|
|
3
3
|
"FieldCommon": {
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"if": {
|
|
7
|
+
"properties": {
|
|
8
|
+
"defaultType": {
|
|
9
|
+
"const": 2
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": [
|
|
13
|
+
"defaultType"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"then": {
|
|
17
|
+
"properties": {
|
|
18
|
+
"defaultValue": {
|
|
19
|
+
"type": "null"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"if": {
|
|
26
|
+
"properties": {
|
|
27
|
+
"defaultType": {
|
|
28
|
+
"const": 3
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": [
|
|
32
|
+
"defaultType"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"then": {
|
|
36
|
+
"properties": {
|
|
37
|
+
"defaultValue": {
|
|
38
|
+
"minLength": 1,
|
|
39
|
+
"type": [
|
|
40
|
+
"string",
|
|
41
|
+
"null"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"anyOf": [
|
|
49
|
+
{
|
|
50
|
+
"required": [
|
|
51
|
+
"queId"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"required": [
|
|
56
|
+
"name"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
],
|
|
4
60
|
"description": "顶层业务字段的公共属性;字段类型由 TopField 的判别分支定义。",
|
|
5
61
|
"properties": {
|
|
6
|
-
"
|
|
7
|
-
"description": "
|
|
62
|
+
"beingRequired": {
|
|
63
|
+
"description": "该字段是否必填;缺失时保留已有字段当前值。",
|
|
8
64
|
"type": "boolean"
|
|
9
65
|
},
|
|
10
66
|
"defaultType": {
|
|
11
67
|
"default": 1,
|
|
12
|
-
"description": "
|
|
68
|
+
"description": "默认值类型,与 defaultValue 联动;1 表示静态值,2 表示关联/绑定值且 defaultValue 只能省略或为 null,3 表示公式值且提供 defaultValue 时必须为非空公式文本。省略 defaultType 但提供 defaultValue 时按 1 处理。",
|
|
13
69
|
"enum": [
|
|
14
70
|
1,
|
|
15
71
|
2,
|
|
@@ -19,39 +75,40 @@
|
|
|
19
75
|
},
|
|
20
76
|
"defaultValue": {
|
|
21
77
|
"$ref": "#/$defs/ScalarDefaultValue",
|
|
22
|
-
"description": "
|
|
23
|
-
},
|
|
24
|
-
"description": {
|
|
25
|
-
"description": "字段说明;null 或空字符串表示清空。",
|
|
26
|
-
"type": [
|
|
27
|
-
"string",
|
|
28
|
-
"null"
|
|
29
|
-
]
|
|
78
|
+
"description": "普通字段的默认值;后端 queDefaultValue 为字符串,因此数字等字面量也必须以字符串传入。defaultType 为 1 时表示静态文本,为 3 时表示公式文本,为 2 时不携带字面量默认值。表格、地址、附件、引用等结构化默认值必须放在具体字段 config.defaultValues。显式 null 表示清除默认值。"
|
|
30
79
|
},
|
|
31
80
|
"name": {
|
|
32
|
-
"description": "
|
|
81
|
+
"description": "字段展示名称;新增字段必填,已有字段可在携带 queId 时省略;同一父级内唯一。",
|
|
33
82
|
"minLength": 1,
|
|
34
83
|
"type": "string"
|
|
35
84
|
},
|
|
36
85
|
"queId": {
|
|
37
|
-
"description": "已有字段的后端 ID
|
|
86
|
+
"description": "已有字段的后端 ID;更新时用于精确定位并复用,新增字段通常省略。",
|
|
38
87
|
"minimum": 1,
|
|
39
88
|
"type": "integer"
|
|
40
89
|
},
|
|
41
|
-
"
|
|
42
|
-
"description": "
|
|
43
|
-
"type":
|
|
90
|
+
"questionDescription": {
|
|
91
|
+
"description": "字段说明;null 或空字符串表示清空。",
|
|
92
|
+
"type": [
|
|
93
|
+
"string",
|
|
94
|
+
"null"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"questionType": {
|
|
98
|
+
"description": "字段类型;具体可用值由当前字段详情 Schema 的判别分支约束。",
|
|
99
|
+
"type": "string"
|
|
44
100
|
},
|
|
45
101
|
"width": {
|
|
46
|
-
"description": "
|
|
47
|
-
"
|
|
48
|
-
|
|
102
|
+
"description": "字段在所在行的宽度百分比;只能选择 25、50、75 或 100。",
|
|
103
|
+
"enum": [
|
|
104
|
+
25,
|
|
105
|
+
50,
|
|
106
|
+
75,
|
|
107
|
+
100
|
|
108
|
+
],
|
|
49
109
|
"type": "integer"
|
|
50
110
|
}
|
|
51
111
|
},
|
|
52
|
-
"required": [
|
|
53
|
-
"name"
|
|
54
|
-
],
|
|
55
112
|
"type": "object"
|
|
56
113
|
},
|
|
57
114
|
"NumberConfig": {
|
|
@@ -80,12 +137,10 @@
|
|
|
80
137
|
]
|
|
81
138
|
},
|
|
82
139
|
"currencyType": {
|
|
83
|
-
"
|
|
140
|
+
"default": 1,
|
|
141
|
+
"description": "货币类型 ID;后端发布要求为非空正整数,即使 currencyStatus 为 false 也不得传 null。无需指定时省略并使用默认值 1。",
|
|
84
142
|
"minimum": 1,
|
|
85
|
-
"type":
|
|
86
|
-
"integer",
|
|
87
|
-
"null"
|
|
88
|
-
]
|
|
143
|
+
"type": "integer"
|
|
89
144
|
},
|
|
90
145
|
"decimalDigit": {
|
|
91
146
|
"description": "小数位数。",
|
|
@@ -146,11 +201,9 @@
|
|
|
146
201
|
"type": "object"
|
|
147
202
|
},
|
|
148
203
|
"ScalarDefaultValue": {
|
|
149
|
-
"description": "
|
|
204
|
+
"description": "后端 queDefaultValue 支持的普通字段默认值;非空值必须是字符串,显式 null 表示清除默认值。数字和布尔值应先转换为字符串,对象和数组必须使用字段专用默认值配置。需要配置结构化默认值时,通过 AppForm Schema 查询能力传入当前 schema_version,并将字段的 questionType 作为 field_type 获取该字段类型的详细 Schema,再按其中的字段专用 config 定义填写。",
|
|
150
205
|
"type": [
|
|
151
206
|
"null",
|
|
152
|
-
"boolean",
|
|
153
|
-
"number",
|
|
154
207
|
"string"
|
|
155
208
|
]
|
|
156
209
|
}
|
|
@@ -166,12 +219,12 @@
|
|
|
166
219
|
"config": {
|
|
167
220
|
"$ref": "#/$defs/NumberConfig"
|
|
168
221
|
},
|
|
169
|
-
"
|
|
222
|
+
"questionType": {
|
|
170
223
|
"const": "amount"
|
|
171
224
|
}
|
|
172
225
|
},
|
|
173
226
|
"required": [
|
|
174
|
-
"
|
|
227
|
+
"questionType"
|
|
175
228
|
]
|
|
176
229
|
}
|
|
177
230
|
],
|
|
@@ -257,15 +257,71 @@
|
|
|
257
257
|
"type": "object"
|
|
258
258
|
},
|
|
259
259
|
"FieldCommon": {
|
|
260
|
+
"allOf": [
|
|
261
|
+
{
|
|
262
|
+
"if": {
|
|
263
|
+
"properties": {
|
|
264
|
+
"defaultType": {
|
|
265
|
+
"const": 2
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"required": [
|
|
269
|
+
"defaultType"
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
"then": {
|
|
273
|
+
"properties": {
|
|
274
|
+
"defaultValue": {
|
|
275
|
+
"type": "null"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"if": {
|
|
282
|
+
"properties": {
|
|
283
|
+
"defaultType": {
|
|
284
|
+
"const": 3
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"required": [
|
|
288
|
+
"defaultType"
|
|
289
|
+
]
|
|
290
|
+
},
|
|
291
|
+
"then": {
|
|
292
|
+
"properties": {
|
|
293
|
+
"defaultValue": {
|
|
294
|
+
"minLength": 1,
|
|
295
|
+
"type": [
|
|
296
|
+
"string",
|
|
297
|
+
"null"
|
|
298
|
+
]
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
"anyOf": [
|
|
305
|
+
{
|
|
306
|
+
"required": [
|
|
307
|
+
"queId"
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"required": [
|
|
312
|
+
"name"
|
|
313
|
+
]
|
|
314
|
+
}
|
|
315
|
+
],
|
|
260
316
|
"description": "顶层业务字段的公共属性;字段类型由 TopField 的判别分支定义。",
|
|
261
317
|
"properties": {
|
|
262
|
-
"
|
|
263
|
-
"description": "
|
|
318
|
+
"beingRequired": {
|
|
319
|
+
"description": "该字段是否必填;缺失时保留已有字段当前值。",
|
|
264
320
|
"type": "boolean"
|
|
265
321
|
},
|
|
266
322
|
"defaultType": {
|
|
267
323
|
"default": 1,
|
|
268
|
-
"description": "
|
|
324
|
+
"description": "默认值类型,与 defaultValue 联动;1 表示静态值,2 表示关联/绑定值且 defaultValue 只能省略或为 null,3 表示公式值且提供 defaultValue 时必须为非空公式文本。省略 defaultType 但提供 defaultValue 时按 1 处理。",
|
|
269
325
|
"enum": [
|
|
270
326
|
1,
|
|
271
327
|
2,
|
|
@@ -275,39 +331,40 @@
|
|
|
275
331
|
},
|
|
276
332
|
"defaultValue": {
|
|
277
333
|
"$ref": "#/$defs/ScalarDefaultValue",
|
|
278
|
-
"description": "
|
|
279
|
-
},
|
|
280
|
-
"description": {
|
|
281
|
-
"description": "字段说明;null 或空字符串表示清空。",
|
|
282
|
-
"type": [
|
|
283
|
-
"string",
|
|
284
|
-
"null"
|
|
285
|
-
]
|
|
334
|
+
"description": "普通字段的默认值;后端 queDefaultValue 为字符串,因此数字等字面量也必须以字符串传入。defaultType 为 1 时表示静态文本,为 3 时表示公式文本,为 2 时不携带字面量默认值。表格、地址、附件、引用等结构化默认值必须放在具体字段 config.defaultValues。显式 null 表示清除默认值。"
|
|
286
335
|
},
|
|
287
336
|
"name": {
|
|
288
|
-
"description": "
|
|
337
|
+
"description": "字段展示名称;新增字段必填,已有字段可在携带 queId 时省略;同一父级内唯一。",
|
|
289
338
|
"minLength": 1,
|
|
290
339
|
"type": "string"
|
|
291
340
|
},
|
|
292
341
|
"queId": {
|
|
293
|
-
"description": "已有字段的后端 ID
|
|
342
|
+
"description": "已有字段的后端 ID;更新时用于精确定位并复用,新增字段通常省略。",
|
|
294
343
|
"minimum": 1,
|
|
295
344
|
"type": "integer"
|
|
296
345
|
},
|
|
297
|
-
"
|
|
298
|
-
"description": "
|
|
299
|
-
"type":
|
|
346
|
+
"questionDescription": {
|
|
347
|
+
"description": "字段说明;null 或空字符串表示清空。",
|
|
348
|
+
"type": [
|
|
349
|
+
"string",
|
|
350
|
+
"null"
|
|
351
|
+
]
|
|
352
|
+
},
|
|
353
|
+
"questionType": {
|
|
354
|
+
"description": "字段类型;具体可用值由当前字段详情 Schema 的判别分支约束。",
|
|
355
|
+
"type": "string"
|
|
300
356
|
},
|
|
301
357
|
"width": {
|
|
302
|
-
"description": "
|
|
303
|
-
"
|
|
304
|
-
|
|
358
|
+
"description": "字段在所在行的宽度百分比;只能选择 25、50、75 或 100。",
|
|
359
|
+
"enum": [
|
|
360
|
+
25,
|
|
361
|
+
50,
|
|
362
|
+
75,
|
|
363
|
+
100
|
|
364
|
+
],
|
|
305
365
|
"type": "integer"
|
|
306
366
|
}
|
|
307
367
|
},
|
|
308
|
-
"required": [
|
|
309
|
-
"name"
|
|
310
|
-
],
|
|
311
368
|
"type": "object"
|
|
312
369
|
},
|
|
313
370
|
"ReferenceDefaultValue": {
|
|
@@ -335,11 +392,9 @@
|
|
|
335
392
|
"type": "object"
|
|
336
393
|
},
|
|
337
394
|
"ScalarDefaultValue": {
|
|
338
|
-
"description": "
|
|
395
|
+
"description": "后端 queDefaultValue 支持的普通字段默认值;非空值必须是字符串,显式 null 表示清除默认值。数字和布尔值应先转换为字符串,对象和数组必须使用字段专用默认值配置。需要配置结构化默认值时,通过 AppForm Schema 查询能力传入当前 schema_version,并将字段的 questionType 作为 field_type 获取该字段类型的详细 Schema,再按其中的字段专用 config 定义填写。",
|
|
339
396
|
"type": [
|
|
340
397
|
"null",
|
|
341
|
-
"boolean",
|
|
342
|
-
"number",
|
|
343
398
|
"string"
|
|
344
399
|
]
|
|
345
400
|
}
|
|
@@ -355,15 +410,12 @@
|
|
|
355
410
|
"config": {
|
|
356
411
|
"$ref": "#/$defs/AttachmentConfig"
|
|
357
412
|
},
|
|
358
|
-
"
|
|
359
|
-
"type": "boolean"
|
|
360
|
-
},
|
|
361
|
-
"type": {
|
|
413
|
+
"questionType": {
|
|
362
414
|
"const": "attachment"
|
|
363
415
|
}
|
|
364
416
|
},
|
|
365
417
|
"required": [
|
|
366
|
-
"
|
|
418
|
+
"questionType"
|
|
367
419
|
]
|
|
368
420
|
}
|
|
369
421
|
],
|