You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the most resent release of AdaptiveCards - v1.2 - the developers removed the validate function from the renderer. Web Chat updated the AdaptiveCards dependency in PR #2064 to v1.2; however, the AdaptiveCardRenderer component still uses the validate function. As a result, Web Chat is throwing an 'adaptiveCard.validate is not a function' error.
The CardElement.validate() and Action.validate() methods have been REMOVED, replaced with CardObject.validateProperties() and CardObject.internalValidateProperties(context: ValidationContext). Custom elements and actions now must override internalValidateProperties and add validation failures as appropriate to the context object passed as a parameter using its addFailure method. Be sure to always call super.internalValidateProperties(context) in your override.
It looks like AdaptiveCards also removed the speak property from the TextBlock class in v1.2, and it is still being used in the AdaptiveCardBuilder component. Web Chat throws a "Property 'speak' does not exist on type 'TextBlock'" error during build.
Screenshots
Version
Version: 0.0.0-0
Local build from master branch
Describe the bug
In the most resent release of AdaptiveCards - v1.2 - the developers removed the validate function from the renderer. Web Chat updated the AdaptiveCards dependency in PR #2064 to v1.2; however, the AdaptiveCardRenderer component still uses the validate function. As a result, Web Chat is throwing an 'adaptiveCard.validate is not a function' error.
https://www.npmjs.com/package/adaptivecards#breaking-changes
In addition to reconfiguring the AdaptiveCardRenderer component, AdaptiveCard tests should be added to prevent errors like this in the future.
To Reproduce
Send an AdaptiveCard to Web Chat
[Bug]
The text was updated successfully, but these errors were encountered: