Skip to content

Commit a6fd637

Browse files
committed
Fixing function.json schema
1 parent 4749404 commit a6fd637

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

schemas/json/function.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,29 @@
33
"$schema": "http://json-schema.org/draft-04/schema#",
44
"type": "object",
55
"properties": {
6+
"disabled": {
7+
"type": "boolean",
8+
"description": "If set to true, marks the function as disabled (it cannot be triggered)."
9+
},
10+
"excluded": {
11+
"type": "boolean",
12+
"description": "If set to true, the function will not be loaded, compiled, or triggered."
13+
},
14+
"scriptFile": {
15+
"type": "string",
16+
"description": "Optional path to function script file."
17+
},
18+
"entryPoint": {
19+
"type": "string",
20+
"description": "Optional named entry point."
21+
},
622
"bindings": {
723
"type": "array",
824
"description": "A list of function bindings.",
925
"items": {
1026
"oneOf": [
1127
{ "$ref": "#/definitions/dynamicBinding" },
12-
{
28+
{
1329
"oneOf": [
1430
{ "$ref": "#/definitions/serviceBusBinding" },
1531
{ "$ref": "#/definitions/blobBinding" },
@@ -30,22 +46,6 @@
3046
"allOf": [
3147
{ "$ref": "#/definitions/bindingBase" }
3248
]
33-
},
34-
"disabled": {
35-
"type": "boolean",
36-
"description": "If set to true, marks the function as disabled (it cannot be triggered)."
37-
},
38-
"excluded": {
39-
"type": "boolean",
40-
"description": "If set to true, the function will not be loaded, compiled, or triggered."
41-
},
42-
"scriptFile": {
43-
"type": "string",
44-
"description": "Optional path to function script file."
45-
},
46-
"entryPoint": {
47-
"type": "string",
48-
"description": "Optional named entry point."
4949
}
5050
}
5151
},

0 commit comments

Comments
 (0)