Skip to content

Commit 72c2ec8

Browse files
authored
Introduction of Secure HTTP definitions
Introduction of Secure HTTP definitions
2 parents 3bc561e + 090430c commit 72c2ec8

File tree

1 file changed

+29
-27
lines changed

1 file changed

+29
-27
lines changed

teams/vDevPreview/MicrosoftTeams.schema.json

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@
8484
"maxLength": 10
8585
},
8686
"websiteUrl": {
87-
"$ref": "#/definitions/httpsUrl",
87+
"$ref": "#/definitions/anyHttpUrl",
8888
"description": "The url to the page that provides support information for the app."
8989
},
9090
"privacyUrl": {
91-
"$ref": "#/definitions/httpsUrl",
91+
"$ref": "#/definitions/anyHttpUrl",
9292
"description": "The url to the page that provides privacy information for the app."
9393
},
9494
"termsOfUseUrl": {
95-
"$ref": "#/definitions/httpsUrl",
95+
"$ref": "#/definitions/anyHttpUrl",
9696
"description": "The url to the page that provides the terms of use for the app."
9797
},
9898
"contactInfo": {
@@ -253,7 +253,7 @@
253253
"maxLength": 64
254254
},
255255
"configurationUrl": {
256-
"$ref": "#/definitions/httpsUrl",
256+
"$ref": "#/definitions/anyHttpUrl",
257257
"description": "The url to use when configuring the tab."
258258
},
259259
"canUpdateConfiguration": {
@@ -355,19 +355,19 @@
355355
"maxLength": 128
356356
},
357357
"contentUrl": {
358-
"$ref": "#/definitions/httpsUrl",
358+
"$ref": "#/definitions/anyHttpUrl",
359359
"description": "The url which points to the entity UI to be displayed in the Teams canvas."
360360
},
361361
"contentBotId": {
362362
"$ref": "#/definitions/guid",
363363
"description": "The Microsoft App ID specified for the bot in the Bot Framework portal (https://dev.botframework.com/bots)"
364364
},
365365
"websiteUrl": {
366-
"$ref": "#/definitions/httpsUrl",
366+
"$ref": "#/definitions/anyHttpUrl",
367367
"description": "The url to point at if a user opts to view in a browser."
368368
},
369369
"searchUrl": {
370-
"$ref": "#/definitions/httpsUrl",
370+
"$ref": "#/definitions/anyHttpUrl",
371371
"description": "The url to direct a user's search queries."
372372
},
373373
"scopes": {
@@ -623,7 +623,7 @@
623623
"maxLength": 64
624624
},
625625
"configurationUrl": {
626-
"$ref": "#/definitions/httpsUrl",
626+
"$ref": "#/definitions/anyHttpUrl",
627627
"description": "The url to use for configuring the connector using the inline configuration experience."
628628
},
629629
"scopes": {
@@ -1110,7 +1110,7 @@
11101110
"description": "Specify the app's Graph connector configuration. If this is present then webApplicationInfo.id must also be specified.",
11111111
"properties": {
11121112
"notificationUrl": {
1113-
"$ref": "#/definitions/httpsUrl",
1113+
"$ref": "#/definitions/anyHttpUrl",
11141114
"description": "The url where Graph-connector notifications for the application should be sent."
11151115
}
11161116
},
@@ -1240,7 +1240,7 @@
12401240
"default": false
12411241
},
12421242
"publisherDocsUrl": {
1243-
"$ref": "#/definitions/httpsUrl",
1243+
"$ref": "#/definitions/anyHttpUrl",
12441244
"description": "The url to the page that provides additional app information for the admins"
12451245
},
12461246
"defaultInstallScope": {
@@ -1594,7 +1594,7 @@
15941594
"description": "Optional property within backgroundLoadConfiguration containing tab settings for background loading. Setting tabConfiguration indicates that the app supports background loading of tabs.",
15951595
"properties": {
15961596
"contentUrl": {
1597-
"$ref": "#/definitions/httpsUrl",
1597+
"$ref": "#/definitions/anyHttpUrl",
15981598
"description": "Required URL for background loading. This can be the same contentUrl from the staticTabs section or an alternative endpoint used for background loading."
15991599
}
16001600
},
@@ -1789,11 +1789,16 @@
17891789
"type": "string",
17901790
"maxLength": 2048
17911791
},
1792-
"httpsUrl": {
1792+
"anyHttpUrl": {
17931793
"type": "string",
17941794
"maxLength": 2048,
17951795
"pattern": "^[Hh][Tt][Tt][Pp][Ss]?://"
17961796
},
1797+
"secureHttpUrl": {
1798+
"type": "string",
1799+
"maxLength": 2048,
1800+
"pattern": "^[Hh][Tt][Tt][Pp][Ss]://"
1801+
},
17971802
"semver": {
17981803
"type": "string",
17991804
"maxLength": 256,
@@ -1829,7 +1834,7 @@
18291834
"description": "Dialog height - either a number in pixels or default layout such as 'large', 'medium', or 'small'."
18301835
},
18311836
"url": {
1832-
"$ref": "#/definitions/httpsUrl",
1837+
"$ref": "#/definitions/anyHttpUrl",
18331838
"description": "Initial webview URL."
18341839
}
18351840
}
@@ -1864,7 +1869,7 @@
18641869
"$ref": "#/definitions/extensionAlternateVersionsArray"
18651870
},
18661871
"audienceClaimUrl": {
1867-
"$ref": "#/definitions/httpsUrl",
1872+
"$ref": "#/definitions/anyHttpUrl",
18681873
"description": "The url for your extension, used to validate Exchange user identity tokens."
18691874
},
18701875
"appDeeplinks": {
@@ -2124,7 +2129,7 @@
21242129
"default": false
21252130
},
21262131
"metadataUrl": {
2127-
"$ref": "#/definitions/httpsUrl",
2132+
"$ref": "#/definitions/secureHttpUrl",
21282133
"description": "The full URL of a metadata json file with default locale."
21292134
},
21302135
"enums": {
@@ -2238,11 +2243,8 @@
22382243
"maxLength": 128
22392244
},
22402245
"helpUrl": {
2241-
"type": "string",
2242-
"format": "uri",
22432246
"description": "URL that provides information about the function. (It is displayed in a task pane.)",
2244-
"minLength": 1,
2245-
"maxLength": 2048
2247+
"$ref": "#/definitions/secureHttpUrl"
22462248
},
22472249
"parameters": {
22482250
"type": "array",
@@ -2441,11 +2443,11 @@
24412443
"additionalProperties": false,
24422444
"properties": {
24432445
"shortcutsUrl": {
2444-
"$ref": "#/definitions/httpsUrl",
2446+
"$ref": "#/definitions/secureHttpUrl",
24452447
"description": "The full URL of the JSON file that will contain the keyboard combination configuration on Office application and platform combinations that don't directly support the unified manifest."
24462448
},
24472449
"localizationResourceUrl": {
2448-
"$ref": "#/definitions/httpsUrl",
2450+
"$ref": "#/definitions/secureHttpUrl",
24492451
"description": "The full URL of a file that provides supplemental resource, such as localized strings, for the file specified in the shortcutsUrl attribute."
24502452
}
24512453
},
@@ -2892,7 +2894,7 @@
28922894
]
28932895
},
28942896
"url": {
2895-
"$ref": "#/definitions/httpsUrl",
2897+
"$ref": "#/definitions/anyHttpUrl",
28962898
"description": "Url to the icon."
28972899
},
28982900
"scale": {
@@ -2950,7 +2952,7 @@
29502952
]
29512953
},
29522954
"url": {
2953-
"$ref": "#/definitions/httpsUrl",
2955+
"$ref": "#/definitions/anyHttpUrl",
29542956
"description": "Absolute Url to the icon."
29552957
}
29562958
},
@@ -3332,7 +3334,7 @@
33323334
"maxLength": 250
33333335
},
33343336
"learnMoreUrl": {
3335-
"$ref": "#/definitions/httpsUrl",
3337+
"$ref": "#/definitions/anyHttpUrl",
33363338
"description": "A URL to a page that explains the add-in in detail."
33373339
}
33383340
},
@@ -3348,11 +3350,11 @@
33483350
"type": "object",
33493351
"properties": {
33503352
"page": {
3351-
"$ref": "#/definitions/httpsUrl",
3353+
"$ref": "#/definitions/anyHttpUrl",
33523354
"description": "URL of the .html page to be loaded in browser-based runtimes."
33533355
},
33543356
"script": {
3355-
"$ref": "#/definitions/httpsUrl",
3357+
"$ref": "#/definitions/anyHttpUrl",
33563358
"description": "URL of the .js script file to be loaded in UI-less runtimes."
33573359
}
33583360
},
@@ -3599,7 +3601,7 @@
35993601
"description": "Icon size in pixels."
36003602
},
36013603
"url": {
3602-
"$ref": "#/definitions/httpsUrl",
3604+
"$ref": "#/definitions/anyHttpUrl",
36033605
"description": "URL for the icon."
36043606
}
36053607
},

0 commit comments

Comments
 (0)