adaptiveCard/action response type value schema should be updated
Opened this issue · 1 comments
The adaptiveCard/action response type value schema is incomplete, for the response type below, I cannot figure out how to construct a value body to make it work:
I write the code and message type works fine as below:
{
status: 200,
body: {
statusCode: 200,
type: "application/vnd.microsoft.activity.message",
value: "my"
}
}
however, I tried application/vnd.microsoft.activity.loginRequest
response type as below, it doesn't work and I will get error: "Unexpected response type for Status Code: 401 Expected responseTypes: application/vnd.microsoft.activity.loginRequest or application/vnd.microsoft.error.invalidAuthCode"
// card is generate by CardFactory.oauthCard function in botbuilder js sdk
{
status: 200,
body: {
statusCode: 401,
type: "application/vnd.microsoft.activity.loginRequest",
value:card.content
},
}
and application/vnd.microsoft.error.preconditionFailed
also not work as below, and I will get error: "Unexpected response type for Status Code: 412 Expected responseType: application/vnd.microsoft.error.preconditionFailed"
{
status: 200,
body: {
statusCode: 412,
type: "application/vnd.microsoft.error.preconditionFailed",
},
}
It is better to have code snippet or sample project to demonstrate how to use these request/response.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 93584a54-8a69-aae2-e890-849d367040c2
- Version Independent ID: cd61793f-b330-9d8d-ebd0-8814f8aab3bd
- Content: Universal Action Model - Adaptive Cards
- Content Source: AdaptiveCards/authoring-cards/universal-action-model.md
- Product: adaptive-cards
- GitHub Login: @sowrabh-msft
- Microsoft Alias: sonrs
Any update?