Skip to content

Commit

Permalink
Update schema to v17 (#178)
Browse files Browse the repository at this point in the history
* Update scheme to v17

* Add response rendering template

* Update requirementExtensionsElements
  • Loading branch information
chu-tianshu committed Jun 6, 2024
1 parent 4f0207e commit 510341c
Show file tree
Hide file tree
Showing 3 changed files with 1,310 additions and 25 deletions.
84 changes: 84 additions & 0 deletions MicrosoftTeams.Localization.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
"type": "string",
"maxLength": 64
},
"^composeExtensions\\[0\\]\\.commands\\[[0-9]\\]\\.samplePrompts\\[[0-4]\\]\\.text$": {
"type": "string",
"maxLength": 128
},
"^activities.activityTypes\\[\\b([0-9]|[1-8][0-9]|9[0-9]|1[01][0-9]|12[0-7])\\b]\\.description$": {
"type": "string",
"maxLength": 128
Expand All @@ -76,6 +80,86 @@
"^meetingExtensionDefinition.scenes\\[[0-9]\\]\\.name$": {
"type": "string",
"maxLength": 128
},
"^extensions\\[[0]\\]\\.audienceClaimUrl$": {
"type": "string",
"maxLength": 2048
},
"^extensions\\[[0]\\]\\.ribbons\\[[0-9]\\]\\.tabs\\[[1]?[0-9]\\]\\.label$": {
"type": "string",
"maxLength": 64
},
"^extensions\\[[0]\\]\\.ribbons\\[[0-9]\\]\\.tabs\\[[1]?[0-9]\\]\\.customMobileRibbonGroups\\[[0-9]\\]\\.label$": {
"type": "string",
"maxLength": 32
},
"^extensions\\[[0]\\]\\.ribbons\\[[0-9]\\]\\.tabs\\[[1]?[0-9]\\]\\.customMobileRibbonGroups\\[[0-9]\\]\\.controls\\[[1]?[0-9]\\]\\.icons\\[[0-8]\\]\\.url$": {
"type": "string",
"maxLength": 2048
},
"^extensions\\[[0]\\]\\.ribbons\\[[0-9]\\]\\.tabs\\[[1]?[0-9]\\]\\.customMobileRibbonGroups\\[[0-9]\\]\\.controls\\[[1]?[0-9]\\]\\.label$": {
"type": "string",
"maxLength": 32
},
"^extensions\\[[0]\\]\\.ribbons\\[[0-9]\\]\\.tabs\\[[1]?[0-9]\\]\\.groups\\[[0-9]\\]\\.icons\\[[0-2]\\]\\.url$": {
"type": "string",
"maxLength": 2048
},
"^extensions\\[[0]\\]\\.ribbons\\[[0-9]\\]\\.tabs\\[[1]?[0-9]\\]\\.groups\\[[0-9]\\]\\.label$": {
"type": "string",
"maxLength": 64
},
"^extensions\\[[0]\\]\\.ribbons\\[[0-9]\\]\\.tabs\\[[1]?[0-9]\\]\\.groups\\[[0-9]\\]\\.controls\\[[1]?[0-9]\\]\\.icons\\[[0-2]\\]\\.url$": {
"type": "string",
"maxLength": 2048
},
"^extensions\\[[0]\\]\\.ribbons\\[[0-9]\\]\\.tabs\\[[1]?[0-9]\\]\\.groups\\[[0-9]\\]\\.controls\\[[1]?[0-9]\\]\\.label$": {
"type": "string",
"maxLength": 64
},
"^extensions\\[[0]\\]\\.ribbons\\[[0-9]\\]\\.tabs\\[[1]?[0-9]\\]\\.groups\\[[0-9]\\]\\.controls\\[[1]?[0-9]\\]\\.supertip\\.title$": {
"type": "string",
"maxLength": 64
},
"^extensions\\[[0]\\]\\.ribbons\\[[0-9]\\]\\.tabs\\[[1]?[0-9]\\]\\.groups\\[[0-9]\\]\\.controls\\[[1]?[0-9]\\]\\.supertip\\.description$": {
"type": "string",
"maxLength": 250
},
"^extensions\\[[0]\\]\\.ribbons\\[[0-9]\\]\\.tabs\\[[1]?[0-9]\\]\\.groups\\[[0-9]\\]\\.controls\\[[1]?[0-9]\\]\\.items\\[[1]?[0-9]\\]\\.icons\\[[0-2]\\]\\.url$": {
"type": "string",
"maxLength": 2048
},
"^extensions\\[[0]\\]\\.ribbons\\[[0-9]\\]\\.tabs\\[[1]?[0-9]\\]\\.groups\\[[0-9]\\]\\.controls\\[[1]?[0-9]\\]\\.items\\[[1]?[0-9]\\]\\.label$": {
"type": "string",
"maxLength": 64
},
"^extensions\\[[0]\\]\\.ribbons\\[[0-9]\\]\\.tabs\\[[1]?[0-9]\\]\\.groups\\[[0-9]\\]\\.controls\\[[1]?[0-9]\\]\\.items\\[[1]?[0-9]\\]\\.supertip\\.title$": {
"type": "string",
"maxLength": 64
},
"^extensions\\[[0]\\]\\.ribbons\\[[0-9]\\]\\.tabs\\[[1]?[0-9]\\]\\.groups\\[[0-9]\\]\\.controls\\[[1]?[0-9]\\]\\.items\\[[1]?[0-9]\\]\\.supertip\\.description$": {
"type": "string",
"maxLength": 250
},
"^extensions\\[[0]\\]\\.runtimes\\[[1]?[0-9]\\]\\.code\\.page$": {
"type": "string",
"maxLength": 2048
},
"^extensions\\[[0]\\]\\.runtimes\\[[1]?[0-9]\\]\\.code\\.script$": {
"type": "string",
"maxLength": 2048
},
"^extensions\\[[0]\\]\\.runtimes\\[[1]?[0-9]\\]\\.actions\\[[1]?[0-9]\\]\\.displayName$": {
"type": "string",
"maxLength": 64
},
"^extensions\\[[0]\\]\\.alternates\\[[0-9]\\]\\.alternateIcons\\.icon\\.url$": {
"type": "string",
"maxLength": 2048
},
"^extensions\\[[0]\\]\\.alternates\\[[0-9]\\]\\.alternateIcons\\.highResolutionIcon\\.url$": {
"type": "string",
"maxLength": 2048
}
},
"required": [ "name.short", "name.full", "description.short", "description.full" ]
Expand Down
89 changes: 89 additions & 0 deletions MicrosoftTeams.ResponseRenderingTemplate.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"additionalProperties": false,
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "The version of the schema this manifest is using.",
"const": "1.0"
},
"$schema": {
"type": "string",
"format": "uri"
},
"jsonPath": {
"type": "string",
"description": "The path to the results in the response JSON.",
"maxLength": 256
},
"responseLayout": {
"type": "string",
"description": "Specifies the layout of the attachments. Used for responses of type result. Supported types are list and grid.",
"enum": [
"list",
"grid"
]
},
"responseCardTemplate": {
"type": "object",
"properties": {},
"description": "The adaptive card template for each result in the response."
},
"previewCardTemplate": {
"type": "object",
"additionalProperties": false,
"description": "The preview card template for each result in the response.",
"properties": {
"title": {
"type": "string",
"description": "The title of the preview card.",
"maxLength": 256
},
"subtitle": {
"type": "string",
"description": "The subtitle of the preview card.",
"maxLength": 256
},
"text": {
"type": "string",
"description": "The text of the preview card.",
"maxLength": 256
},
"image": {
"type": "object",
"additionalProperties": false,
"properties": {
"url": {
"type": "string",
"description": "The url to the image. Must be https or a data url scheme. Redirect urls are not supported.",
"maxLength": 2048
},
"alt": {
"type": "string",
"description": "Accessible description of the image.",
"maxLength": 256
},
"$when": {
"type": "string",
"description": "An optional conditional expression used to determine if the image element will appear to the user.",
"maxLength": 256
}
},
"required": [
"url"
]
}
},
"required": [
"title"
]
}
},
"required": [
"version",
"responseLayout",
"responseCardTemplate",
"previewCardTemplate"
]
}
Loading

0 comments on commit 510341c

Please sign in to comment.