MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
287 stars 510 forks source link

Unable to upload App Package with latest Manifest schema changes (v1.17) #10776

Open Naina-G opened 6 months ago

Naina-G commented 6 months ago

Steps to reproduce

Hi, I am adding changes to update my app manifest to the latest schema as shown in the example schema here - https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema

As a part of the changes, I have updated manifestVersion and $schema to point to latest manifest version 1.17 and corresponding schema value Additionally, I have also added the values for the keys semanticDescription and samplePrompts as listed in the table under composeExtensions.commands. For adding the values for these keys, I have referred to the schema hosted at https://developer.microsoft.com/json-schemas/teams/v1.17/MicrosoftTeams.schema.json

Note: In the sample App Manifest at https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema, the version value is 1.17 but the schema value is "https://developer.microsoft.com/json-schemas/teams/v1.16/MicrosoftTeams.schema.json". This does not work hence I have tried with the below 2 values for schema:

Expected behavior

App package with App manifest version 1.17 and the keys semanticDescription and samplePrompts listed in https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema should work and I should be able to upload the app package.

Actual behavior

When I create an App package with these changes and try to upload via Teams Admin Center, It gives as error "We can't read the manifest file". And when I try to validate it using App package validator. It gives me below failures for the usage of these 2 keys semanticDescription and samplePrompts :

composeExtensions[0].commands[0].semanticDescription: Property "semanticDescription" has not been defined and the schema does not allow additional properties.

composeExtensions[0].commands[0].samplePrompts: Property "samplePrompts" has not been defined and the schema does not allow additional properties

Error details

No response

microsoft-github-policy-service[bot] commented 6 months ago

Hi Naina-G! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

Vaibhav-MSFT commented 6 months ago

Hello @Naina-G , Thanks for reporting your issue. We will check and update the document accordingly.

Vaibhav-MSFT commented 6 months ago

Hello @Naina-G , We tested with the https://[developer.microsoft.com/json-schemas/teams/v1.17/MicrosoftTeams.schema.json](https://developer.microsoft.com/json-schemas/teams/v1.17/MicrosoftTeams.schema.json) and also added the values for the keys semanticDescription and samplePrompts, getting the following error while validating the app manifest-

image

We have raised a bug for the same. We will inform you once we get any further update from engineering team. Thanks!

Naina-G commented 6 months ago

Thanks @Vaibhav-MSFT Looking forward to further updates or a solution for this issue.