Skip to content
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

Validation of AdaptiveCard #8

Closed
vovanb opened this issue Nov 1, 2017 · 2 comments
Closed

Validation of AdaptiveCard #8

vovanb opened this issue Nov 1, 2017 · 2 comments

Comments

@vovanb
Copy link

vovanb commented Nov 1, 2017

In your example the validation done in c# code in each card. For example GetErrorMessage in next card raise error. Is exist any possible workaround to have validation in JSON instead of compiled code?
Similar as in MS bot framework it is done in JSON schema:
https://docs.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-formflow-json-schema

@vovanb
Copy link
Author

vovanb commented Nov 7, 2017

any update?

@EricDahlvang
Copy link
Collaborator

Hi @vovanb

FormFlow is specifically built on top of the .NET Bot Builder sdk, and was created with validation as part of the architecture. Adaptive Cards are a separate library defining a schema and standard for control and layout across various UI clients. Bots are just one of the consumers of Adaptive Cards. It would be possible to create a json based validation library that uses reflection on top of .net Adaptive Cards. It might be a lot of work though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants