-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathAsyncValidation.json
More file actions
70 lines (70 loc) · 1.71 KB
/
Copy pathAsyncValidation.json
File metadata and controls
70 lines (70 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"$ref": "#/definitions/AsyncValidation",
"definitions": {
"AsyncValidation": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[a-z_][a-z0-9_]*$",
"description": "Unique rule name"
},
"active": {
"type": "boolean",
"default": true
},
"severity": {
"type": "string",
"enum": [
"error",
"warning",
"info"
],
"default": "error"
},
"message": {
"type": "string",
"description": "Error message to display"
},
"type": {
"type": "string",
"const": "async"
},
"field": {
"type": "string",
"description": "Field to validate"
},
"validatorUrl": {
"type": "string",
"description": "External API endpoint for validation"
},
"validatorFunction": {
"type": "string",
"description": "Reference to custom validator function"
},
"timeout": {
"type": "number",
"default": 5000,
"description": "Timeout in milliseconds"
},
"debounce": {
"type": "number",
"description": "Debounce delay in milliseconds"
},
"params": {
"type": "object",
"additionalProperties": {},
"description": "Additional parameters to pass to validator"
}
},
"required": [
"name",
"message",
"type",
"field"
],
"additionalProperties": false
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}