Skip to content

Commit 40a05ae

Browse files
Matt Masonfabiocav
authored andcommitted
Added notification hub, twilio, and sendgrid schemas
1 parent 3fb8eb0 commit 40a05ae

File tree

1 file changed

+116
-2
lines changed

1 file changed

+116
-2
lines changed

schemas/json/function.json

Lines changed: 116 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,16 @@
6464
},
6565
{
6666
"$ref": "#/definitions/dynamic"
67+
},
68+
{
69+
"$ref": "#/definitions/notificationHub"
70+
},
71+
{
72+
"$ref": "#/definitions/twilioSms"
73+
},
74+
{
75+
"$ref": "#/definitions/sendGrid"
6776
}
68-
6977
]
7078
}
7179
}
@@ -83,7 +91,10 @@
8391
"manualTrigger",
8492
"blobTrigger",
8593
"serviceBusTrigger",
86-
"table"
94+
"table",
95+
"notificationHub",
96+
"twilioSms",
97+
"sendGrid"
8798
]
8899
},
89100
"serviceBusTrigger": {
@@ -309,6 +320,109 @@
309320
}
310321
]
311322
},
323+
"notificationHub": {
324+
"properties": {
325+
"type": {
326+
"type": "string",
327+
"pattern": "notificationHub"
328+
},
329+
"tagExpression": {
330+
"type": "string",
331+
"description": "The tag to send the notification to."
332+
},
333+
"hubName": {
334+
"type": "string",
335+
"description": "The name of the notification hub."
336+
},
337+
"connection": {
338+
"type": "string",
339+
"description": "The name of the app setting which contains the notification hub connection string."
340+
},
341+
"platform": {
342+
"type": "string",
343+
"description": "The notification platform to target.",
344+
"enum": [
345+
"template",
346+
"apns",
347+
"adm",
348+
"gcm",
349+
"wns",
350+
"mpns"
351+
]
352+
}
353+
},
354+
"allOf": [
355+
{
356+
"$ref": "#/definitions/outputBinding"
357+
}
358+
]
359+
},
360+
"twilioSms": {
361+
"properties": {
362+
"type": {
363+
"type": "string",
364+
"pattern": "twilioSms"
365+
},
366+
"accountSid": {
367+
"type": "string",
368+
"description": "The name of the app setting which contains your Twilio Account Sid."
369+
},
370+
"authToken": {
371+
"type": "string",
372+
"description": "The name of the app setting which contains your Twilio authentication token."
373+
},
374+
"to": {
375+
"type": "string",
376+
"description": "The phone number the SMS text is sent to."
377+
},
378+
"from": {
379+
"type": "string",
380+
"description": "The phone number the SMS text is sent from."
381+
},
382+
"body": {
383+
"type": "string",
384+
"description": "Optional body of SMS text message."
385+
}
386+
},
387+
"allOf": [
388+
{
389+
"$ref": "#/definitions/outputBinding"
390+
}
391+
]
392+
},
393+
"sendGrid": {
394+
"properties": {
395+
"type": {
396+
"type": "string",
397+
"pattern": "sendGrid"
398+
},
399+
"apiKey": {
400+
"type": "string",
401+
"description": "The name of the app setting which contains your SendGrid api key."
402+
},
403+
"to": {
404+
"type": "string",
405+
"description": "The email address to send to."
406+
},
407+
"from": {
408+
"type": "string",
409+
"description": "The email address to send from."
410+
},
411+
"subject": {
412+
"type": "string",
413+
"description": "The subject of the email."
414+
},
415+
"text": {
416+
"type": "string",
417+
"description": "The text of the email."
418+
}
419+
},
420+
"allOf": [
421+
{
422+
"$ref": "#/definitions/outputBinding"
423+
}
424+
]
425+
},
312426
"binding": {
313427
"properties": {
314428
"direction": {

0 commit comments

Comments
 (0)