-
Notifications
You must be signed in to change notification settings - Fork 276
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
=concat() causes a validation error #2780
Comments
I investigated this issue a couple days ago. My hypothesis is that this is coming from the adaptive-expressions library. Validation is made under packages/lib/indexers/src/validations/expressionValidation/validation.ts. Specifically returnType = Expression.parse(exp). Expression.parse calls the adaptive-expressions library. We can see with the example of concat that returnType yields 24 when the enum has valid properties only up to 16. |
Transferring to botbuilder-js |
@cwhitten The So, maybe should adjust the validation of returntype in Composer? |
Thank you @Danieladu @boydc2014 @lei9444 should this return type instead be exported from |
hi, @cwhitten I am working on the return type in composer last week, and I will have a PR to fix it today. |
Describe the bug
Composer throws a validation error if an expression is using concat as the returned value.
For example, use =concat('foo','bar') a field that expects a string.
Version
1.1.1
To Reproduce
you will see a validation error
expected response
this should be a valid value since concat returns a string.
The text was updated successfully, but these errors were encountered: