Teams Developer Portal generates invalid manifest with composeExtensionType property

dcdahl 10 Reputation points
2023-12-13T10:45:26.1266667+00:00

Hello.

The Teams Developer Portal generates an invalid manifest file when adding a ComposeExtension. It adds a property "composeExtensionType" : "botBased" as shown:

 "composeExtensions": [
    {
      "botId": "f101f57f-e525-4aa4-bd78-b36997b3f481",
      "composeExtensionType": "botBased",
      "commands": [
        {
          "id": "ExampleTitle",
          "type": "action",
          "title": "Example",
          "description": "Example",
          "initialRun": true,
          "fetchTask": true,
          "context": [
            "commandBox",
            "compose",
            "message"
          ],
          "taskInfo": {
            "title": "Example",
            "width": "1024",
            "height": "720",
            "url": "https://c888-2a02-2121-6b8-c485-5c2b-c848-7641-ba5a3.ngrok-free.app"
          }
        }
      ],
      "canUpdateConfiguration": false,
      "messageHandlers": [
        {
          "type": "link",
          "value": {
            "domains": [],
            "supportsAnonymizedPayloads": true
          }
        }
      ]
    }
  ],

The teams developer portal has seemingly no way of changing the manifest version, so I'm stuck with the current version (1.16) . This version does not include the "composeExtensionType" property and does not allow additional properties.

When using the "Preview in Teams" feature in the Teams developer portal the Windows version only displays "This app cannot be found" as does the new version of teams in the browser. However, the old version shows an option to copy the error details to clipboard:

Error when reading manifest.json: composeExtensions[0].composeExtensionType | Property "composeExtensionType" has not been defined and the schema does not allow additional properties.

As a workaround I am able to download the app package, unzip it and manually remove the property before rezipping it and manually reinstalling the app. This is tedious work when updating the manifest frequently during development.

Can anyone help?

Microsoft Teams | Development
Microsoft Teams | Microsoft Teams for business | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.