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

Support for validating structs created by builder #198

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

ribeiromiranda
Copy link
Collaborator

Add support for validating struct built by builder #197

Signed-off-by: André R. de Miranda <andre@galgo.tech>
Signed-off-by: André R. de Miranda <andre@galgo.tech>
return context.WithValue(context.Background(), ValidatorContextValue, contextValue)
}

func init() {
// TODO: create states graph to complex check

// val.GetValidator().RegisterStructValidationCtx(val.ValidationWrap(nil, workflowStructLevelValidation), Workflow{})
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove this comment?

Copy link

This pull request 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.

Copy link

This pull request 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.

@ricardozanini
Copy link
Member

@ribeiromiranda can we merge this?

@ribeiromiranda
Copy link
Collaborator Author

ribeiromiranda commented Apr 2, 2024

@ribeiromiranda can we merge this?

@ricardozanini Yes.

@github-actions github-actions bot removed the Stale PR label Apr 3, 2024
@ricardozanini ricardozanini merged commit b1933e7 into serverlessworkflow:main Apr 3, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for validating structs created by builder
2 participants