-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: return full response w/ adaptiveCard invoke action #3778
Conversation
return { status: response.statusCode, body: response.value }; | ||
return { status: response.statusCode, body: response }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (value.action.type !== 'Action.Execute') { | ||
const response = this.createAdaptiveCardInvokeErrorResponse( | ||
StatusCodes.BAD_REQUEST, | ||
'NotSupported', | ||
`The action '${value.action.type}' is not supported.` | ||
); | ||
|
||
throw new InvokeException(StatusCodes.BAD_REQUEST, response); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: This was just to sync w/ .NET
Pull Request Test Coverage Report for Build 951300841
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small question, otherwise LGTM.
Fixes #3776