Skip to content

Commit d0e7efc

Browse files
soninarenfabiocav
authored andcommitted
Adding mobileTable and documentDb binding to functionJson Schema
1 parent 40a05ae commit d0e7efc

File tree

1 file changed

+107
-3
lines changed

1 file changed

+107
-3
lines changed

schemas/json/function.json

Lines changed: 107 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@
7373
},
7474
{
7575
"$ref": "#/definitions/sendGrid"
76+
},
77+
{
78+
"$ref": "#/definitions/mobileTable"
79+
},
80+
{
81+
"$ref": "#/definitions/documentDB"
7682
}
7783
]
7884
}
@@ -94,7 +100,9 @@
94100
"table",
95101
"notificationHub",
96102
"twilioSms",
97-
"sendGrid"
103+
"sendGrid",
104+
"mobileTable",
105+
"documentDB"
98106
]
99107
},
100108
"serviceBusTrigger": {
@@ -264,6 +272,102 @@
264272
}
265273
]
266274
},
275+
"mobileTable": {
276+
"properties": {
277+
"type": {
278+
"type": "string",
279+
"pattern": "mobileTable"
280+
},
281+
"tableName": {
282+
"type": "string",
283+
"description": "This is the name of the table within your Mobile App to which data will be written."
284+
},
285+
"connection": {
286+
"type": "string",
287+
"description": "This is the app setting name that specifies the URL of your Mobile App."
288+
},
289+
"apiKey": {
290+
"type": "string",
291+
"description": "This is app setting name that specifies the API Key for your Mobile App."
292+
}
293+
},
294+
"oneOf": [
295+
{
296+
"$ref": "#/definitions/mobileTableInputBinding"
297+
},
298+
{
299+
"$ref": "#/definitions/mobileTableOutputBinding"
300+
}
301+
]
302+
},
303+
"mobileTableInputBinding": {
304+
"properties": {
305+
"id": {
306+
"type": "string",
307+
"description": "This is the id for the record to retrieve."
308+
}
309+
},
310+
"allOf": [
311+
{
312+
"$ref": "#/definitions/inputBinding"
313+
}
314+
]
315+
},
316+
"mobileTableOutputBinding": {
317+
"allOf": [
318+
{
319+
"$ref": "#/definitions/outputBinding"
320+
}
321+
]
322+
},
323+
"documentDB": {
324+
"properties": {
325+
"type": {
326+
"type": "string",
327+
"pattern": "documentDB"
328+
},
329+
"connection": {
330+
"type": "string",
331+
"description": "This is the connection string for your DocumentDB account."
332+
},
333+
"databaseName": {
334+
"type": "string",
335+
"description": "This is the name of the database within your DocumentDB account to which data will be written."
336+
},
337+
"collectionName": {
338+
"type": "string",
339+
"description": "This is the name of the collection within your database to which data will be written."
340+
}
341+
},
342+
"oneOf": [
343+
{
344+
"$ref": "#/definitions/documentDBInputBinding"
345+
},
346+
{
347+
"$ref": "#/definitions/documentDBOutputBinding"
348+
}
349+
]
350+
},
351+
"documentDBInputBinding": {
352+
"allOf": [
353+
{
354+
"$ref": "#/definitions/inputBinding"
355+
}
356+
]
357+
},
358+
"documentDBOutputBinding": {
359+
"properties": {
360+
"createIfNotExists": {
361+
"type": "boolean",
362+
"description": "When true, your database and collection will be created automatically."
363+
}
364+
},
365+
"allOf": [
366+
{
367+
"$ref": "#/definitions/outputBinding"
368+
}
369+
]
370+
},
267371
"table": {
268372
"properties": {
269373
"type": {
@@ -292,7 +396,7 @@
292396
"$ref": "#/definitions/tableInputBinding"
293397
},
294398
{
295-
"$ref": "#/definitions/tableOutputBinding"
399+
"$ref": "#/definitions/tableOutputBinding"
296400
}
297401
]
298402
},
@@ -313,7 +417,7 @@
313417
}
314418
]
315419
},
316-
"tableOutputBinding": {
420+
"tableOutputBinding": {
317421
"allOf": [
318422
{
319423
"$ref": "#/definitions/outputBinding"

0 commit comments

Comments
 (0)