-
Notifications
You must be signed in to change notification settings - Fork 204
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
Unable to send or recieve PerformMessage with params #1785
Comments
BlackLight54
changed the title
Action Menu PerformMessage validation unexpected error
Unable to send or recieve PerformMessage with params
Mar 1, 2024
I was able to recreate this issue, when I tried to perform an action of a requested action menu with params included. The data that I tried to submit: {name: "echo", params: { message-text: "test message :)" }}
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When sending or recieving a message which is compliant with Aries RFC 0509: Action Menu Protocol which contains a valid params dictionary:
Recieved Message
Error
The same doesn't happen with an empty params field.
This probably originates from the validation in
packages/action-menu/src/messages/PerformMessage.ts
I suspect that because
Record<string,string>
is not a class, only a simple object, the validator doesn't work as expected, or that theeach
validator option only works with arrays not records.I think a solution would fall along the lines of this issue.
PS: This issue may become irrelevant if
class-validator
is replaced byzod
#1777The text was updated successfully, but these errors were encountered: