-
Notifications
You must be signed in to change notification settings - Fork 37
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
DataInputSchema can only be a string and not an object #194
Comments
Hi @k-jay-c! Thanks for reporting it. The code is not expecting a string, but a struct. The function to unmarshal should handle it as an object or string depending on the contents of the string: https://github.com/serverlessworkflow/sdk-go/blob/main/util/unmarshal.go#L244 There might be a bug there. I don't have the pool to work on it atm, can you try sending a PR? |
Hi, I'll try to take a look on in this week on my spare time. |
Got it working, but one test is failing, will look into tomorrow :) |
fixes serverlessworkflow#194 Signed-off-by: Spolti <filippespolti@gmail.com>
fixes serverlessworkflow#194 Signed-off-by: Spolti <filippespolti@gmail.com>
Hi @k-jay-c, do you mind to test the changes in the attached PR? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
fixes serverlessworkflow#194 Signed-off-by: Spolti <filippespolti@gmail.com>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
fixes serverlessworkflow#194 Signed-off-by: Spolti <filippespolti@gmail.com>
What happened:
Trying to parse workflow definition with dataInputSchema defined as an object fails.
The above dataInputSchema is not accepted because in the code - this is only accepting a string.
What you expected to happen:
As per the spec, the dataInputSchema can be a string or an object. Both should be accepted
How to reproduce it:
Parse the above Workflow definition using sdk-go
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: