@innoways/utils 3.0.0
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/CHANGELOG.md +184 -0
- package/README.md +11 -0
- package/__tests__/combine.ts +102 -0
- package/__tests__/common.ts +155 -0
- package/__tests__/flowHandle.ts +16 -0
- package/__tests__/parse.ts +109 -0
- package/__testsdata__/array.schema.ts +97 -0
- package/__testsdata__/controlFlow.ts +166 -0
- package/__testsdata__/datePicker.schema.ts +92 -0
- package/__testsdata__/errMsg.schema.ts +138 -0
- package/__testsdata__/errMsg2.schema.ts +74 -0
- package/__testsdata__/errMsg3.schema.ts +79 -0
- package/__testsdata__/errMsg4.schema.ts +152 -0
- package/__testsdata__/multinest.schema.ts +265 -0
- package/__testsdata__/nest.schema.ts +307 -0
- package/__testsdata__/nestObject.schema.ts +360 -0
- package/__testsdata__/repeatField.schema.ts +88 -0
- package/__testsdata__/root.schema.ts +35 -0
- package/__testsdata__/test$fieldKey.schema.ts +1158 -0
- package/__testsdata__/test.schema.ts +1158 -0
- package/build-info/index.stats.html +2648 -0
- package/dist/cjs/index.js +3949 -0
- package/dist/esm/index.js +3907 -0
- package/package.json +44 -0
- package/rollup.config.js +13 -0
- package/tsconfig.dist.json +7 -0
|
@@ -0,0 +1,1158 @@
|
|
|
1
|
+
/* eslint-disable quotes */
|
|
2
|
+
export const unitedSchema = {
|
|
3
|
+
validateTime: 'change',
|
|
4
|
+
theme: 'antd',
|
|
5
|
+
type: 'object',
|
|
6
|
+
ui: {
|
|
7
|
+
containerStyle: {
|
|
8
|
+
padding: '0 16px',
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
schema: [
|
|
12
|
+
{
|
|
13
|
+
type: 'string',
|
|
14
|
+
title: 'Display mode',
|
|
15
|
+
fieldKey: 'viewMode',
|
|
16
|
+
default: 'all',
|
|
17
|
+
ui: {
|
|
18
|
+
type: 'select',
|
|
19
|
+
style: {
|
|
20
|
+
width: '100%',
|
|
21
|
+
},
|
|
22
|
+
options: [
|
|
23
|
+
{
|
|
24
|
+
value: 'configured',
|
|
25
|
+
label: 'Display only configured verification rules',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
value: 'all',
|
|
29
|
+
label: 'Display all',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: 'object',
|
|
36
|
+
title: 'General verification',
|
|
37
|
+
fieldKey: 'common',
|
|
38
|
+
ui: {
|
|
39
|
+
type: 'object',
|
|
40
|
+
mode: 'collapse',
|
|
41
|
+
'$:dripStyle': true,
|
|
42
|
+
ghost: true,
|
|
43
|
+
containerStyle: {
|
|
44
|
+
marginBottom: 5,
|
|
45
|
+
padding: 0,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
schema: [
|
|
49
|
+
{
|
|
50
|
+
type: 'boolean',
|
|
51
|
+
title: 'Required?',
|
|
52
|
+
fieldKey: 'required',
|
|
53
|
+
ui: {
|
|
54
|
+
type: 'switch',
|
|
55
|
+
vcontrol:
|
|
56
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
type: 'number',
|
|
61
|
+
fieldKey: 'minLength',
|
|
62
|
+
title: 'Minimum Length',
|
|
63
|
+
ui: {
|
|
64
|
+
type: 'number',
|
|
65
|
+
vcontrol:
|
|
66
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
type: 'number',
|
|
71
|
+
fieldKey: 'maxLength',
|
|
72
|
+
title: 'Maximum Length',
|
|
73
|
+
ui: {
|
|
74
|
+
type: 'number',
|
|
75
|
+
vcontrol:
|
|
76
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
type: 'string',
|
|
81
|
+
title: 'Regular expression without flags',
|
|
82
|
+
fieldKey: 'pattern',
|
|
83
|
+
ui: {
|
|
84
|
+
type: 'text',
|
|
85
|
+
vcontrol:
|
|
86
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
type: 'string',
|
|
91
|
+
fieldKey: 'format',
|
|
92
|
+
title: 'Common regular expressions',
|
|
93
|
+
ui: {
|
|
94
|
+
type: 'select',
|
|
95
|
+
style: {
|
|
96
|
+
width: '100%',
|
|
97
|
+
},
|
|
98
|
+
allowClear: true,
|
|
99
|
+
options: [
|
|
100
|
+
{
|
|
101
|
+
value: 'color',
|
|
102
|
+
label: 'color',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
value: 'https',
|
|
106
|
+
label: 'https',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
value: 'jsonObject',
|
|
110
|
+
label: 'jsonObject',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
value: 'date',
|
|
114
|
+
label: 'date',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
value: 'time',
|
|
118
|
+
label: 'time',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
value: 'date-tiem',
|
|
122
|
+
label: 'date-time',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
value: 'duration',
|
|
126
|
+
label: 'duration',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
value: 'uri',
|
|
130
|
+
label: 'uri',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
value: 'uri-reference',
|
|
134
|
+
label: 'uri-reference',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
value: 'uri-template',
|
|
138
|
+
label: 'uri-template',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
value: 'url',
|
|
142
|
+
label: 'url',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
value: 'email',
|
|
146
|
+
label: 'email',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
value: 'hostname',
|
|
150
|
+
label: 'hostname',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
value: 'ipv4',
|
|
154
|
+
label: 'ipv4',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
value: 'ipv6',
|
|
158
|
+
label: 'ipv6',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
value: 'regex',
|
|
162
|
+
label: 'regex',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
value: 'uuid',
|
|
166
|
+
label: 'uuid',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
value: 'json-pointer',
|
|
170
|
+
label: 'json-pointer',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
value: 'relative-json-pointer',
|
|
174
|
+
label: 'relative-json-pointer',
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
value: 'byte',
|
|
178
|
+
label: 'byte',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
value: 'int32',
|
|
182
|
+
label: 'int32',
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
value: 'int64',
|
|
186
|
+
label: 'int64',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
value: 'float',
|
|
190
|
+
label: 'float',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
value: 'double',
|
|
194
|
+
label: 'double',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
value: 'password',
|
|
198
|
+
label: 'password',
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
value: 'binary',
|
|
202
|
+
label: 'binary',
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
vcontrol:
|
|
206
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
type: 'string',
|
|
211
|
+
fieldKey: 'regexp',
|
|
212
|
+
title: 'Regular expression with flags',
|
|
213
|
+
ui: {
|
|
214
|
+
description: {
|
|
215
|
+
type: 'icon',
|
|
216
|
+
trigger: 'hover',
|
|
217
|
+
title: 'You can use regular symbols such as g, i, and u',
|
|
218
|
+
},
|
|
219
|
+
type: 'text',
|
|
220
|
+
vcontrol:
|
|
221
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
type: 'array',
|
|
226
|
+
fieldKey: 'transform',
|
|
227
|
+
title: 'Format',
|
|
228
|
+
ui: {
|
|
229
|
+
type: 'select',
|
|
230
|
+
style: {
|
|
231
|
+
width: '100%',
|
|
232
|
+
},
|
|
233
|
+
mode: 'multiple',
|
|
234
|
+
options: [
|
|
235
|
+
{
|
|
236
|
+
value: 'trim',
|
|
237
|
+
label: 'Remove leading and trailing spaces',
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
value: 'trimStart',
|
|
241
|
+
label: 'Remove leading spaces',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
value: 'trimEnd',
|
|
245
|
+
label: 'Remove trailing spaces',
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
value: 'toLowerCase',
|
|
249
|
+
label: 'Convert to lowercase',
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
value: 'trimUpperCase',
|
|
253
|
+
label: 'Convert to uppercase',
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
vcontrol:
|
|
257
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
],
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
type: 'object',
|
|
264
|
+
title: 'Business verification',
|
|
265
|
+
fieldKey: 'business',
|
|
266
|
+
ui: {
|
|
267
|
+
type: 'object',
|
|
268
|
+
mode: 'collapse',
|
|
269
|
+
'$:dripStyle': true,
|
|
270
|
+
ghost: true,
|
|
271
|
+
containerStyle: {
|
|
272
|
+
padding: 0,
|
|
273
|
+
marginBottom: 5,
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
schema: [
|
|
277
|
+
{
|
|
278
|
+
type: 'object',
|
|
279
|
+
fieldKey: 'rangeDelimiter',
|
|
280
|
+
title: 'Delimiter Range',
|
|
281
|
+
ui: {
|
|
282
|
+
type: 'object',
|
|
283
|
+
mode: 'collapse',
|
|
284
|
+
'$:dripStyle': true,
|
|
285
|
+
ghost: true,
|
|
286
|
+
containerStyle: {
|
|
287
|
+
padding: 0,
|
|
288
|
+
marginBottom: 5,
|
|
289
|
+
},
|
|
290
|
+
description: {
|
|
291
|
+
type: 'icon',
|
|
292
|
+
title:
|
|
293
|
+
'Use the character specified by delimiter to separate, minimum and maximum',
|
|
294
|
+
},
|
|
295
|
+
vcontrol:
|
|
296
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
297
|
+
},
|
|
298
|
+
schema: [
|
|
299
|
+
{
|
|
300
|
+
type: 'string',
|
|
301
|
+
fieldKey: 'delimiter',
|
|
302
|
+
title: 'Custom separator',
|
|
303
|
+
ui: {
|
|
304
|
+
type: 'text',
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
type: 'number',
|
|
309
|
+
fieldKey: 'max',
|
|
310
|
+
title: 'Maximum',
|
|
311
|
+
ui: {
|
|
312
|
+
type: 'number',
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
type: 'number',
|
|
317
|
+
fieldKey: 'min',
|
|
318
|
+
title: 'Minimum',
|
|
319
|
+
ui: {
|
|
320
|
+
type: 'number',
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
],
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
type: 'object',
|
|
327
|
+
fieldKey: 'gbkLength',
|
|
328
|
+
title: 'Length in Chinese and English',
|
|
329
|
+
ui: {
|
|
330
|
+
type: 'object',
|
|
331
|
+
mode: 'collapse',
|
|
332
|
+
'$:dripStyle': true,
|
|
333
|
+
ghost: true,
|
|
334
|
+
containerStyle: {
|
|
335
|
+
padding: 0,
|
|
336
|
+
marginBottom: 5,
|
|
337
|
+
},
|
|
338
|
+
description: {
|
|
339
|
+
type: 'icon',
|
|
340
|
+
title: '2 characters for Chinese and 1 character for English',
|
|
341
|
+
},
|
|
342
|
+
vcontrol:
|
|
343
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
344
|
+
},
|
|
345
|
+
schema: [
|
|
346
|
+
{
|
|
347
|
+
type: 'number',
|
|
348
|
+
fieldKey: 'max',
|
|
349
|
+
title: 'Maximum',
|
|
350
|
+
ui: {
|
|
351
|
+
type: 'number',
|
|
352
|
+
},
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
type: 'number',
|
|
356
|
+
fieldKey: 'min',
|
|
357
|
+
title: 'Minimum',
|
|
358
|
+
ui: {
|
|
359
|
+
type: 'number',
|
|
360
|
+
},
|
|
361
|
+
},
|
|
362
|
+
],
|
|
363
|
+
},
|
|
364
|
+
],
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
type: 'object',
|
|
368
|
+
title: 'Verification error copy configuration',
|
|
369
|
+
fieldKey: 'errorMessage',
|
|
370
|
+
ui: {
|
|
371
|
+
type: 'object',
|
|
372
|
+
mode: 'collapse',
|
|
373
|
+
'$:dripStyle': true,
|
|
374
|
+
ghost: true,
|
|
375
|
+
containerStyle: {
|
|
376
|
+
padding: 0,
|
|
377
|
+
marginBottom: 5,
|
|
378
|
+
},
|
|
379
|
+
},
|
|
380
|
+
schema: [
|
|
381
|
+
{
|
|
382
|
+
type: 'string',
|
|
383
|
+
title: 'Error backup copy',
|
|
384
|
+
fieldKey: '_',
|
|
385
|
+
ui: {
|
|
386
|
+
type: 'text',
|
|
387
|
+
description: {
|
|
388
|
+
type: 'icon',
|
|
389
|
+
trigger: 'hover',
|
|
390
|
+
title:
|
|
391
|
+
'When the keyword is not configured with error copy, the copy will be displayed when an error occurs',
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
type: 'string',
|
|
397
|
+
title: 'Required?',
|
|
398
|
+
fieldKey: 'required',
|
|
399
|
+
ui: {
|
|
400
|
+
type: 'text',
|
|
401
|
+
vcontrol:
|
|
402
|
+
"try {\n if(typeof props.get('common.required').data!=='number'){\n return !!props.get('common.required').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
403
|
+
},
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
type: 'string',
|
|
407
|
+
title: 'Minimum Length',
|
|
408
|
+
fieldKey: 'minLength',
|
|
409
|
+
ui: {
|
|
410
|
+
type: 'text',
|
|
411
|
+
vcontrol:
|
|
412
|
+
"try {\n if(typeof props.get('common.minLength').data!=='number'){\n return !!props.get('common.minLength').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
413
|
+
},
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
type: 'string',
|
|
417
|
+
title: 'Maximum Length',
|
|
418
|
+
fieldKey: 'maxLength',
|
|
419
|
+
ui: {
|
|
420
|
+
type: 'text',
|
|
421
|
+
vcontrol:
|
|
422
|
+
"try {\n if(typeof props.get('common.maxLength').data!=='number'){\n return !!props.get('common.maxLength').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
423
|
+
},
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
type: 'string',
|
|
427
|
+
title: 'Regular expression without flags',
|
|
428
|
+
fieldKey: 'pattern',
|
|
429
|
+
ui: {
|
|
430
|
+
type: 'text',
|
|
431
|
+
vcontrol:
|
|
432
|
+
"try {\n if(typeof props.get('common.pattern').data!=='number'){\n return !!props.get('common.pattern').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
433
|
+
},
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
type: 'string',
|
|
437
|
+
title: 'Common regular expressions',
|
|
438
|
+
fieldKey: 'format',
|
|
439
|
+
ui: {
|
|
440
|
+
type: 'text',
|
|
441
|
+
vcontrol:
|
|
442
|
+
"try {\n if(typeof props.get('common.format').data!=='number'){\n return !!props.get('common.format').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
443
|
+
},
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
type: 'string',
|
|
447
|
+
title: 'Regular expression with flags',
|
|
448
|
+
fieldKey: 'regexp',
|
|
449
|
+
ui: {
|
|
450
|
+
type: 'text',
|
|
451
|
+
vcontrol:
|
|
452
|
+
"try {\n if(typeof props.get('common.regexp').data!=='number'){\n return !!props.get('common.regexp').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
453
|
+
},
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
type: 'string',
|
|
457
|
+
title: 'Format',
|
|
458
|
+
fieldKey: 'transform',
|
|
459
|
+
ui: {
|
|
460
|
+
type: 'text',
|
|
461
|
+
vcontrol:
|
|
462
|
+
"try {\n if(typeof props.get('common.transform').data!=='number'){\n return !!props.get('common.transform').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
463
|
+
},
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
type: 'string',
|
|
467
|
+
title: 'Delimiter Range',
|
|
468
|
+
fieldKey: 'rangeDelimiter',
|
|
469
|
+
ui: {
|
|
470
|
+
type: 'text',
|
|
471
|
+
vcontrol:
|
|
472
|
+
"try {\n if(typeof props.get('business.rangeDelimiter').data!=='number'){\n return !!props.get('business.rangeDelimiter').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
473
|
+
},
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
type: 'string',
|
|
477
|
+
title: 'Length in Chinese and English',
|
|
478
|
+
fieldKey: 'gbkLength',
|
|
479
|
+
ui: {
|
|
480
|
+
type: 'text',
|
|
481
|
+
vcontrol:
|
|
482
|
+
"try {\n if(typeof props.get('business.gbkLength').data!=='number'){\n return !!props.get('business.gbkLength').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
483
|
+
},
|
|
484
|
+
},
|
|
485
|
+
],
|
|
486
|
+
},
|
|
487
|
+
],
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export const parsedSchema = {
|
|
491
|
+
dataSchema: {
|
|
492
|
+
validateTime: 'change',
|
|
493
|
+
type: 'object',
|
|
494
|
+
properties: {
|
|
495
|
+
viewMode: {
|
|
496
|
+
type: 'string',
|
|
497
|
+
title: 'Display mode',
|
|
498
|
+
default: 'all',
|
|
499
|
+
},
|
|
500
|
+
common: {
|
|
501
|
+
type: 'object',
|
|
502
|
+
title: 'General verification',
|
|
503
|
+
properties: {
|
|
504
|
+
required: {
|
|
505
|
+
type: 'boolean',
|
|
506
|
+
title: 'Required?',
|
|
507
|
+
},
|
|
508
|
+
minLength: {
|
|
509
|
+
type: 'number',
|
|
510
|
+
title: 'Minimum Length',
|
|
511
|
+
},
|
|
512
|
+
maxLength: {
|
|
513
|
+
type: 'number',
|
|
514
|
+
title: 'Maximum Length',
|
|
515
|
+
},
|
|
516
|
+
pattern: {
|
|
517
|
+
type: 'string',
|
|
518
|
+
title: 'Regular expression without flags',
|
|
519
|
+
},
|
|
520
|
+
format: {
|
|
521
|
+
type: 'string',
|
|
522
|
+
title: 'Common regular expressions',
|
|
523
|
+
},
|
|
524
|
+
regexp: {
|
|
525
|
+
type: 'string',
|
|
526
|
+
title: 'Regular expression with flags',
|
|
527
|
+
},
|
|
528
|
+
transform: {
|
|
529
|
+
type: 'array',
|
|
530
|
+
title: 'Format',
|
|
531
|
+
},
|
|
532
|
+
},
|
|
533
|
+
},
|
|
534
|
+
business: {
|
|
535
|
+
type: 'object',
|
|
536
|
+
title: 'Business verification',
|
|
537
|
+
properties: {
|
|
538
|
+
rangeDelimiter: {
|
|
539
|
+
type: 'object',
|
|
540
|
+
title: 'Delimiter Range',
|
|
541
|
+
properties: {
|
|
542
|
+
delimiter: {
|
|
543
|
+
type: 'string',
|
|
544
|
+
title: 'Custom separator',
|
|
545
|
+
},
|
|
546
|
+
max: {
|
|
547
|
+
type: 'number',
|
|
548
|
+
title: 'Maximum',
|
|
549
|
+
},
|
|
550
|
+
min: {
|
|
551
|
+
type: 'number',
|
|
552
|
+
title: 'Minimum',
|
|
553
|
+
},
|
|
554
|
+
},
|
|
555
|
+
},
|
|
556
|
+
gbkLength: {
|
|
557
|
+
type: 'object',
|
|
558
|
+
title: 'Length in Chinese and English',
|
|
559
|
+
properties: {
|
|
560
|
+
max: {
|
|
561
|
+
type: 'number',
|
|
562
|
+
title: 'Maximum',
|
|
563
|
+
},
|
|
564
|
+
min: {
|
|
565
|
+
type: 'number',
|
|
566
|
+
title: 'Minimum',
|
|
567
|
+
},
|
|
568
|
+
},
|
|
569
|
+
},
|
|
570
|
+
},
|
|
571
|
+
},
|
|
572
|
+
errorMessage: {
|
|
573
|
+
type: 'object',
|
|
574
|
+
title: 'Verification error copy configuration',
|
|
575
|
+
properties: {
|
|
576
|
+
_: {
|
|
577
|
+
type: 'string',
|
|
578
|
+
title: 'Error backup copy',
|
|
579
|
+
},
|
|
580
|
+
required: {
|
|
581
|
+
type: 'string',
|
|
582
|
+
title: 'Required?',
|
|
583
|
+
},
|
|
584
|
+
minLength: {
|
|
585
|
+
type: 'string',
|
|
586
|
+
title: 'Minimum Length',
|
|
587
|
+
},
|
|
588
|
+
maxLength: {
|
|
589
|
+
type: 'string',
|
|
590
|
+
title: 'Maximum Length',
|
|
591
|
+
},
|
|
592
|
+
pattern: {
|
|
593
|
+
type: 'string',
|
|
594
|
+
title: 'Regular expression without flags',
|
|
595
|
+
},
|
|
596
|
+
format: {
|
|
597
|
+
type: 'string',
|
|
598
|
+
title: 'Common regular expressions',
|
|
599
|
+
},
|
|
600
|
+
regexp: {
|
|
601
|
+
type: 'string',
|
|
602
|
+
title: 'Regular expression with flags',
|
|
603
|
+
},
|
|
604
|
+
transform: {
|
|
605
|
+
type: 'string',
|
|
606
|
+
title: 'Format',
|
|
607
|
+
},
|
|
608
|
+
rangeDelimiter: {
|
|
609
|
+
type: 'string',
|
|
610
|
+
title: 'Delimiter Range',
|
|
611
|
+
},
|
|
612
|
+
gbkLength: {
|
|
613
|
+
type: 'string',
|
|
614
|
+
title: 'Length in Chinese and English',
|
|
615
|
+
},
|
|
616
|
+
},
|
|
617
|
+
},
|
|
618
|
+
},
|
|
619
|
+
},
|
|
620
|
+
uiSchema: {
|
|
621
|
+
theme: 'antd',
|
|
622
|
+
containerStyle: {
|
|
623
|
+
padding: '0 16px',
|
|
624
|
+
},
|
|
625
|
+
order: ['viewMode', 'common', 'business', 'errorMessage'],
|
|
626
|
+
properties: {
|
|
627
|
+
viewMode: {
|
|
628
|
+
type: 'select',
|
|
629
|
+
style: {
|
|
630
|
+
width: '100%',
|
|
631
|
+
},
|
|
632
|
+
options: [
|
|
633
|
+
{
|
|
634
|
+
value: 'configured',
|
|
635
|
+
label: 'Display only configured verification rules',
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
value: 'all',
|
|
639
|
+
label: 'Display all',
|
|
640
|
+
},
|
|
641
|
+
],
|
|
642
|
+
},
|
|
643
|
+
common: {
|
|
644
|
+
type: 'object',
|
|
645
|
+
mode: 'collapse',
|
|
646
|
+
'$:dripStyle': true,
|
|
647
|
+
ghost: true,
|
|
648
|
+
containerStyle: {
|
|
649
|
+
marginBottom: 5,
|
|
650
|
+
padding: 0,
|
|
651
|
+
},
|
|
652
|
+
order: [
|
|
653
|
+
'required',
|
|
654
|
+
'minLength',
|
|
655
|
+
'maxLength',
|
|
656
|
+
'pattern',
|
|
657
|
+
'format',
|
|
658
|
+
'regexp',
|
|
659
|
+
'transform',
|
|
660
|
+
],
|
|
661
|
+
properties: {
|
|
662
|
+
required: {
|
|
663
|
+
type: 'switch',
|
|
664
|
+
vcontrol:
|
|
665
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
666
|
+
},
|
|
667
|
+
minLength: {
|
|
668
|
+
type: 'number',
|
|
669
|
+
vcontrol:
|
|
670
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
671
|
+
},
|
|
672
|
+
maxLength: {
|
|
673
|
+
type: 'number',
|
|
674
|
+
vcontrol:
|
|
675
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
676
|
+
},
|
|
677
|
+
pattern: {
|
|
678
|
+
type: 'text',
|
|
679
|
+
vcontrol:
|
|
680
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
681
|
+
},
|
|
682
|
+
format: {
|
|
683
|
+
type: 'select',
|
|
684
|
+
style: {
|
|
685
|
+
width: '100%',
|
|
686
|
+
},
|
|
687
|
+
allowClear: true,
|
|
688
|
+
options: [
|
|
689
|
+
{
|
|
690
|
+
value: 'color',
|
|
691
|
+
label: 'color',
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
value: 'https',
|
|
695
|
+
label: 'https',
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
value: 'jsonObject',
|
|
699
|
+
label: 'jsonObject',
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
value: 'date',
|
|
703
|
+
label: 'date',
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
value: 'time',
|
|
707
|
+
label: 'time',
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
value: 'date-tiem',
|
|
711
|
+
label: 'date-time',
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
value: 'duration',
|
|
715
|
+
label: 'duration',
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
value: 'uri',
|
|
719
|
+
label: 'uri',
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
value: 'uri-reference',
|
|
723
|
+
label: 'uri-reference',
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
value: 'uri-template',
|
|
727
|
+
label: 'uri-template',
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
value: 'url',
|
|
731
|
+
label: 'url',
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
value: 'email',
|
|
735
|
+
label: 'email',
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
value: 'hostname',
|
|
739
|
+
label: 'hostname',
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
value: 'ipv4',
|
|
743
|
+
label: 'ipv4',
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
value: 'ipv6',
|
|
747
|
+
label: 'ipv6',
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
value: 'regex',
|
|
751
|
+
label: 'regex',
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
value: 'uuid',
|
|
755
|
+
label: 'uuid',
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
value: 'json-pointer',
|
|
759
|
+
label: 'json-pointer',
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
value: 'relative-json-pointer',
|
|
763
|
+
label: 'relative-json-pointer',
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
value: 'byte',
|
|
767
|
+
label: 'byte',
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
value: 'int32',
|
|
771
|
+
label: 'int32',
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
value: 'int64',
|
|
775
|
+
label: 'int64',
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
value: 'float',
|
|
779
|
+
label: 'float',
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
value: 'double',
|
|
783
|
+
label: 'double',
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
value: 'password',
|
|
787
|
+
label: 'password',
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
value: 'binary',
|
|
791
|
+
label: 'binary',
|
|
792
|
+
},
|
|
793
|
+
],
|
|
794
|
+
vcontrol:
|
|
795
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
796
|
+
},
|
|
797
|
+
regexp: {
|
|
798
|
+
description: {
|
|
799
|
+
type: 'icon',
|
|
800
|
+
trigger: 'hover',
|
|
801
|
+
title: 'You can use regular symbols such as g, i, and u',
|
|
802
|
+
},
|
|
803
|
+
type: 'text',
|
|
804
|
+
vcontrol:
|
|
805
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
806
|
+
},
|
|
807
|
+
transform: {
|
|
808
|
+
type: 'select',
|
|
809
|
+
style: {
|
|
810
|
+
width: '100%',
|
|
811
|
+
},
|
|
812
|
+
mode: 'multiple',
|
|
813
|
+
options: [
|
|
814
|
+
{
|
|
815
|
+
value: 'trim',
|
|
816
|
+
label: 'Remove leading and trailing spaces',
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
value: 'trimStart',
|
|
820
|
+
label: 'Remove leading spaces',
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
value: 'trimEnd',
|
|
824
|
+
label: 'Remove trailing spaces',
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
value: 'toLowerCase',
|
|
828
|
+
label: 'Convert to lowercase',
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
value: 'trimUpperCase',
|
|
832
|
+
label: 'Convert to uppercase',
|
|
833
|
+
},
|
|
834
|
+
],
|
|
835
|
+
vcontrol:
|
|
836
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
837
|
+
},
|
|
838
|
+
},
|
|
839
|
+
},
|
|
840
|
+
business: {
|
|
841
|
+
type: 'object',
|
|
842
|
+
mode: 'collapse',
|
|
843
|
+
'$:dripStyle': true,
|
|
844
|
+
ghost: true,
|
|
845
|
+
containerStyle: {
|
|
846
|
+
padding: 0,
|
|
847
|
+
marginBottom: 5,
|
|
848
|
+
},
|
|
849
|
+
order: ['rangeDelimiter', 'gbkLength'],
|
|
850
|
+
properties: {
|
|
851
|
+
rangeDelimiter: {
|
|
852
|
+
type: 'object',
|
|
853
|
+
mode: 'collapse',
|
|
854
|
+
'$:dripStyle': true,
|
|
855
|
+
ghost: true,
|
|
856
|
+
containerStyle: {
|
|
857
|
+
padding: 0,
|
|
858
|
+
marginBottom: 5,
|
|
859
|
+
},
|
|
860
|
+
description: {
|
|
861
|
+
type: 'icon',
|
|
862
|
+
title:
|
|
863
|
+
'Use the character specified by delimiter to separate, minimum and maximum',
|
|
864
|
+
},
|
|
865
|
+
vcontrol:
|
|
866
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
867
|
+
order: ['delimiter', 'max', 'min'],
|
|
868
|
+
properties: {
|
|
869
|
+
delimiter: {
|
|
870
|
+
type: 'text',
|
|
871
|
+
},
|
|
872
|
+
max: {
|
|
873
|
+
type: 'number',
|
|
874
|
+
},
|
|
875
|
+
min: {
|
|
876
|
+
type: 'number',
|
|
877
|
+
},
|
|
878
|
+
},
|
|
879
|
+
},
|
|
880
|
+
gbkLength: {
|
|
881
|
+
type: 'object',
|
|
882
|
+
mode: 'collapse',
|
|
883
|
+
'$:dripStyle': true,
|
|
884
|
+
ghost: true,
|
|
885
|
+
containerStyle: {
|
|
886
|
+
padding: 0,
|
|
887
|
+
marginBottom: 5,
|
|
888
|
+
},
|
|
889
|
+
description: {
|
|
890
|
+
type: 'icon',
|
|
891
|
+
title: '2 characters for Chinese and 1 character for English',
|
|
892
|
+
},
|
|
893
|
+
vcontrol:
|
|
894
|
+
'const {fieldKey,formData,get}=props;return formData.viewMode==="configured"?typeof get(fieldKey).data!==\'number\'? get(fieldKey).data:true:true',
|
|
895
|
+
order: ['max', 'min'],
|
|
896
|
+
properties: {
|
|
897
|
+
max: {
|
|
898
|
+
type: 'number',
|
|
899
|
+
},
|
|
900
|
+
min: {
|
|
901
|
+
type: 'number',
|
|
902
|
+
},
|
|
903
|
+
},
|
|
904
|
+
},
|
|
905
|
+
},
|
|
906
|
+
},
|
|
907
|
+
errorMessage: {
|
|
908
|
+
type: 'object',
|
|
909
|
+
mode: 'collapse',
|
|
910
|
+
'$:dripStyle': true,
|
|
911
|
+
ghost: true,
|
|
912
|
+
containerStyle: {
|
|
913
|
+
padding: 0,
|
|
914
|
+
marginBottom: 5,
|
|
915
|
+
},
|
|
916
|
+
order: [
|
|
917
|
+
'_',
|
|
918
|
+
'required',
|
|
919
|
+
'minLength',
|
|
920
|
+
'maxLength',
|
|
921
|
+
'pattern',
|
|
922
|
+
'format',
|
|
923
|
+
'regexp',
|
|
924
|
+
'transform',
|
|
925
|
+
'rangeDelimiter',
|
|
926
|
+
'gbkLength',
|
|
927
|
+
],
|
|
928
|
+
properties: {
|
|
929
|
+
_: {
|
|
930
|
+
type: 'text',
|
|
931
|
+
description: {
|
|
932
|
+
type: 'icon',
|
|
933
|
+
trigger: 'hover',
|
|
934
|
+
title:
|
|
935
|
+
'When the keyword is not configured with error copy, the copy will be displayed when an error occurs',
|
|
936
|
+
},
|
|
937
|
+
},
|
|
938
|
+
required: {
|
|
939
|
+
type: 'text',
|
|
940
|
+
vcontrol:
|
|
941
|
+
"try {\n if(typeof props.get('common.required').data!=='number'){\n return !!props.get('common.required').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
942
|
+
},
|
|
943
|
+
minLength: {
|
|
944
|
+
type: 'text',
|
|
945
|
+
vcontrol:
|
|
946
|
+
"try {\n if(typeof props.get('common.minLength').data!=='number'){\n return !!props.get('common.minLength').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
947
|
+
},
|
|
948
|
+
maxLength: {
|
|
949
|
+
type: 'text',
|
|
950
|
+
vcontrol:
|
|
951
|
+
"try {\n if(typeof props.get('common.maxLength').data!=='number'){\n return !!props.get('common.maxLength').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
952
|
+
},
|
|
953
|
+
pattern: {
|
|
954
|
+
type: 'text',
|
|
955
|
+
vcontrol:
|
|
956
|
+
"try {\n if(typeof props.get('common.pattern').data!=='number'){\n return !!props.get('common.pattern').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
957
|
+
},
|
|
958
|
+
format: {
|
|
959
|
+
type: 'text',
|
|
960
|
+
vcontrol:
|
|
961
|
+
"try {\n if(typeof props.get('common.format').data!=='number'){\n return !!props.get('common.format').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
962
|
+
},
|
|
963
|
+
regexp: {
|
|
964
|
+
type: 'text',
|
|
965
|
+
vcontrol:
|
|
966
|
+
"try {\n if(typeof props.get('common.regexp').data!=='number'){\n return !!props.get('common.regexp').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
967
|
+
},
|
|
968
|
+
transform: {
|
|
969
|
+
type: 'text',
|
|
970
|
+
vcontrol:
|
|
971
|
+
"try {\n if(typeof props.get('common.transform').data!=='number'){\n return !!props.get('common.transform').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
972
|
+
},
|
|
973
|
+
rangeDelimiter: {
|
|
974
|
+
type: 'text',
|
|
975
|
+
vcontrol:
|
|
976
|
+
"try {\n if(typeof props.get('business.rangeDelimiter').data!=='number'){\n return !!props.get('business.rangeDelimiter').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
977
|
+
},
|
|
978
|
+
gbkLength: {
|
|
979
|
+
type: 'text',
|
|
980
|
+
vcontrol:
|
|
981
|
+
"try {\n if(typeof props.get('business.gbkLength').data!=='number'){\n return !!props.get('business.gbkLength').data\n }else{\n return true\n }\n } catch (error) {\n return false\n }",
|
|
982
|
+
},
|
|
983
|
+
},
|
|
984
|
+
},
|
|
985
|
+
},
|
|
986
|
+
},
|
|
987
|
+
typePath: {
|
|
988
|
+
viewMode: {
|
|
989
|
+
fatherKey: '',
|
|
990
|
+
title: 'Display mode',
|
|
991
|
+
unitedSchemaKey: 'schema.0',
|
|
992
|
+
type: 'string',
|
|
993
|
+
},
|
|
994
|
+
common: {
|
|
995
|
+
fatherKey: '',
|
|
996
|
+
title: 'General verification',
|
|
997
|
+
unitedSchemaKey: 'schema.1',
|
|
998
|
+
type: 'object',
|
|
999
|
+
},
|
|
1000
|
+
'common.required': {
|
|
1001
|
+
fatherKey: 'common',
|
|
1002
|
+
title: 'Required?',
|
|
1003
|
+
unitedSchemaKey: 'schema.1.schema.0',
|
|
1004
|
+
type: 'boolean',
|
|
1005
|
+
},
|
|
1006
|
+
'common.minLength': {
|
|
1007
|
+
title: 'Minimum Length',
|
|
1008
|
+
fatherKey: 'common',
|
|
1009
|
+
unitedSchemaKey: 'schema.1.schema.1',
|
|
1010
|
+
type: 'number',
|
|
1011
|
+
},
|
|
1012
|
+
'common.maxLength': {
|
|
1013
|
+
fatherKey: 'common',
|
|
1014
|
+
title: 'Maximum Length',
|
|
1015
|
+
unitedSchemaKey: 'schema.1.schema.2',
|
|
1016
|
+
type: 'number',
|
|
1017
|
+
},
|
|
1018
|
+
'common.pattern': {
|
|
1019
|
+
fatherKey: 'common',
|
|
1020
|
+
unitedSchemaKey: 'schema.1.schema.3',
|
|
1021
|
+
title: 'Regular expression without flags',
|
|
1022
|
+
type: 'string',
|
|
1023
|
+
},
|
|
1024
|
+
'common.format': {
|
|
1025
|
+
fatherKey: 'common',
|
|
1026
|
+
title: 'Common regular expressions',
|
|
1027
|
+
unitedSchemaKey: 'schema.1.schema.4',
|
|
1028
|
+
type: 'string',
|
|
1029
|
+
},
|
|
1030
|
+
'common.regexp': {
|
|
1031
|
+
fatherKey: 'common',
|
|
1032
|
+
title: 'Regular expression with flags',
|
|
1033
|
+
unitedSchemaKey: 'schema.1.schema.5',
|
|
1034
|
+
type: 'string',
|
|
1035
|
+
},
|
|
1036
|
+
'common.transform': {
|
|
1037
|
+
title: 'Format',
|
|
1038
|
+
fatherKey: 'common',
|
|
1039
|
+
unitedSchemaKey: 'schema.1.schema.6',
|
|
1040
|
+
type: 'array',
|
|
1041
|
+
},
|
|
1042
|
+
business: {
|
|
1043
|
+
fatherKey: '',
|
|
1044
|
+
title: 'Business verification',
|
|
1045
|
+
unitedSchemaKey: 'schema.2',
|
|
1046
|
+
type: 'object',
|
|
1047
|
+
},
|
|
1048
|
+
'business.rangeDelimiter': {
|
|
1049
|
+
title: 'Delimiter Range',
|
|
1050
|
+
fatherKey: 'business',
|
|
1051
|
+
unitedSchemaKey: 'schema.2.schema.0',
|
|
1052
|
+
type: 'object',
|
|
1053
|
+
},
|
|
1054
|
+
'business.rangeDelimiter.delimiter': {
|
|
1055
|
+
title: 'Custom separator',
|
|
1056
|
+
fatherKey: 'business.rangeDelimiter',
|
|
1057
|
+
unitedSchemaKey: 'schema.2.schema.0.schema.0',
|
|
1058
|
+
type: 'string',
|
|
1059
|
+
},
|
|
1060
|
+
'business.rangeDelimiter.max': {
|
|
1061
|
+
fatherKey: 'business.rangeDelimiter',
|
|
1062
|
+
title: 'Maximum',
|
|
1063
|
+
unitedSchemaKey: 'schema.2.schema.0.schema.1',
|
|
1064
|
+
type: 'number',
|
|
1065
|
+
},
|
|
1066
|
+
'business.rangeDelimiter.min': {
|
|
1067
|
+
fatherKey: 'business.rangeDelimiter',
|
|
1068
|
+
title: 'Minimum',
|
|
1069
|
+
unitedSchemaKey: 'schema.2.schema.0.schema.2',
|
|
1070
|
+
type: 'number',
|
|
1071
|
+
},
|
|
1072
|
+
'business.gbkLength': {
|
|
1073
|
+
title: 'Length in Chinese and English',
|
|
1074
|
+
fatherKey: 'business',
|
|
1075
|
+
unitedSchemaKey: 'schema.2.schema.1',
|
|
1076
|
+
type: 'object',
|
|
1077
|
+
},
|
|
1078
|
+
'business.gbkLength.max': {
|
|
1079
|
+
title: 'Maximum',
|
|
1080
|
+
fatherKey: 'business.gbkLength',
|
|
1081
|
+
unitedSchemaKey: 'schema.2.schema.1.schema.0',
|
|
1082
|
+
type: 'number',
|
|
1083
|
+
},
|
|
1084
|
+
'business.gbkLength.min': {
|
|
1085
|
+
title: 'Minimum',
|
|
1086
|
+
fatherKey: 'business.gbkLength',
|
|
1087
|
+
unitedSchemaKey: 'schema.2.schema.1.schema.1',
|
|
1088
|
+
type: 'number',
|
|
1089
|
+
},
|
|
1090
|
+
errorMessage: {
|
|
1091
|
+
fatherKey: '',
|
|
1092
|
+
title: 'Verification error copy configuration',
|
|
1093
|
+
unitedSchemaKey: 'schema.3',
|
|
1094
|
+
type: 'object',
|
|
1095
|
+
},
|
|
1096
|
+
'errorMessage._': {
|
|
1097
|
+
fatherKey: 'errorMessage',
|
|
1098
|
+
title: 'Error backup copy',
|
|
1099
|
+
unitedSchemaKey: 'schema.3.schema.0',
|
|
1100
|
+
type: 'string',
|
|
1101
|
+
},
|
|
1102
|
+
'errorMessage.required': {
|
|
1103
|
+
fatherKey: 'errorMessage',
|
|
1104
|
+
title: 'Required?',
|
|
1105
|
+
unitedSchemaKey: 'schema.3.schema.1',
|
|
1106
|
+
type: 'string',
|
|
1107
|
+
},
|
|
1108
|
+
'errorMessage.minLength': {
|
|
1109
|
+
fatherKey: 'errorMessage',
|
|
1110
|
+
unitedSchemaKey: 'schema.3.schema.2',
|
|
1111
|
+
title: 'Minimum Length',
|
|
1112
|
+
type: 'string',
|
|
1113
|
+
},
|
|
1114
|
+
'errorMessage.maxLength': {
|
|
1115
|
+
title: 'Maximum Length',
|
|
1116
|
+
fatherKey: 'errorMessage',
|
|
1117
|
+
unitedSchemaKey: 'schema.3.schema.3',
|
|
1118
|
+
type: 'string',
|
|
1119
|
+
},
|
|
1120
|
+
'errorMessage.pattern': {
|
|
1121
|
+
fatherKey: 'errorMessage',
|
|
1122
|
+
title: 'Regular expression without flags',
|
|
1123
|
+
unitedSchemaKey: 'schema.3.schema.4',
|
|
1124
|
+
type: 'string',
|
|
1125
|
+
},
|
|
1126
|
+
'errorMessage.format': {
|
|
1127
|
+
fatherKey: 'errorMessage',
|
|
1128
|
+
unitedSchemaKey: 'schema.3.schema.5',
|
|
1129
|
+
title: 'Common regular expressions',
|
|
1130
|
+
type: 'string',
|
|
1131
|
+
},
|
|
1132
|
+
'errorMessage.regexp': {
|
|
1133
|
+
fatherKey: 'errorMessage',
|
|
1134
|
+
title: 'Regular expression with flags',
|
|
1135
|
+
unitedSchemaKey: 'schema.3.schema.6',
|
|
1136
|
+
type: 'string',
|
|
1137
|
+
},
|
|
1138
|
+
'errorMessage.transform': {
|
|
1139
|
+
fatherKey: 'errorMessage',
|
|
1140
|
+
title: 'Format',
|
|
1141
|
+
unitedSchemaKey: 'schema.3.schema.7',
|
|
1142
|
+
type: 'string',
|
|
1143
|
+
},
|
|
1144
|
+
'errorMessage.rangeDelimiter': {
|
|
1145
|
+
fatherKey: 'errorMessage',
|
|
1146
|
+
title: 'Delimiter Range',
|
|
1147
|
+
unitedSchemaKey: 'schema.3.schema.8',
|
|
1148
|
+
type: 'string',
|
|
1149
|
+
},
|
|
1150
|
+
'errorMessage.gbkLength': {
|
|
1151
|
+
fatherKey: 'errorMessage',
|
|
1152
|
+
unitedSchemaKey: 'schema.3.schema.9',
|
|
1153
|
+
title: 'Length in Chinese and English',
|
|
1154
|
+
type: 'string',
|
|
1155
|
+
},
|
|
1156
|
+
},
|
|
1157
|
+
customProps: [],
|
|
1158
|
+
}
|