Skip to content

Refactor in favor to use primitiveOrStruct. #159

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

Merged
merged 21 commits into from
May 3, 2023
Merged

Refactor in favor to use primitiveOrStruct. #159

merged 21 commits into from
May 3, 2023

Conversation

ribeiromiranda
Copy link
Contributor

Refactor in favor to use primitiveOrStruct.

@ribeiromiranda
Copy link
Contributor Author

Not found in the specification, what is the motivation for function unmarshalFile?

When a parameter can be a string or object, must always check if a string is a file path and try loading?

@ricardozanini
Copy link
Member

ricardozanini commented Mar 10, 2023

@ribeiromiranda sometimes a reference can be an external file instead of a plain JSON object. In these cases, we need to load the file, process it and unmarshal it into a struct. So it's a string which is a URI.

@spolti
Copy link
Member

spolti commented Mar 13, 2023

@ribeiromiranda hi, can you please sign your commit and rebase the PR?
Thanks.

@ricardozanini ricardozanini requested a review from spolti March 15, 2023 11:56
@spolti
Copy link
Member

spolti commented Mar 20, 2023

Hi @ribeiromiranda, can you please rebase?

@spolti
Copy link
Member

spolti commented Mar 27, 2023

@lsytj0413 hi, if you have time, do you mind reviewing this PR?
Thanks.

Copy link
Member

@spolti spolti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice refactoring :D
Few comments

@ricardozanini
Copy link
Member

@ribeiromiranda anytime you feel it's safe to merge. I'm assuming you need a new patch version including this PR, right?

@ribeiromiranda
Copy link
Contributor Author

@ricardozanini Changed the getBytesFromFile to loadExternalResource adding more validation.

André R. de Miranda and others added 21 commits May 3, 2023 16:58
Signed-off-by: André R. de Miranda <[email protected]>
Signed-off-by: André R. de Miranda <[email protected]>
Signed-off-by: André R. de Miranda <[email protected]>
Signed-off-by: André R. de Miranda <[email protected]>
Signed-off-by: André R. de Miranda <[email protected]>
Signed-off-by: André R. de Miranda <[email protected]>
…, that aux the validation and error handling.

Signed-off-by: André R. de Miranda <[email protected]>
Signed-off-by: André R. de Miranda <[email protected]>
Signed-off-by: André R. de Miranda <[email protected]>
Signed-off-by: André R. de Miranda <[email protected]>
Signed-off-by: André R. de Miranda <[email protected]>
Co-authored-by: Filippe Spolti <[email protected]>
Signed-off-by: André R. de Miranda <[email protected]>
…rnalResource. Clean state json. Add state type validation oneofkind

Signed-off-by: André R. de Miranda <[email protected]>
Signed-off-by: André R. de Miranda <[email protected]>
@ricardozanini ricardozanini merged commit 2ee5933 into serverlessworkflow:main May 3, 2023
@ribeiromiranda ribeiromiranda deleted the refactor branch May 4, 2023 11:03
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

Successfully merging this pull request may close these issues.

4 participants