-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path$func.json
More file actions
43 lines (43 loc) · 1010 Bytes
/
$func.json
File metadata and controls
43 lines (43 loc) · 1010 Bytes
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
{
"name": "$func",
"description": "function definition",
"keywords": ["$func", "$name", "$args"],
"required": ["$func"],
"evaluate": {
"keywords": ["$name", "$args"],
"validatorKeyword": "eval$func",
"title": "function definition",
"description": "defines anonymous or named function"
},
"schema": {
"$name": {
"type": "string",
"anyOf": [
{ "pattern": "^[A-Za-z_$][A-Za-z_$0-9]+$" },
{ "format": "uuid" }
]
},
"$args": {
"type": "array",
"minItems": 1,
"items": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z_$][A-Za-z_$0-9]+$"
},
{
"type": "object",
"minProperties": 1,
"maxProperties": 1,
"patternProperties": {
"^[A-Za-z_$][A-Za-z_$0-9]+$": {
"$ref": "http://json-schema.org/draft-04/schema#"
}
}
}
]
}
}
}
}