-
Notifications
You must be signed in to change notification settings - Fork 35
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
Workflow validations #156
Workflow validations #156
Conversation
@ribeiromiranda I need you to sign the DCO and your commits. Many thanks for this! I'll review it later. |
b22bdad
to
7b4c2e2
Compare
57245f2
to
994a77d
Compare
workflow parameters validations: * id and key: add required_without * start: required, create a custom validator to check if state exists on the workflow states Others: * Workflow.Start: if the start is not defined, use the first workflow state * State.UnmarshalJSON: removed return from switch not need * State.UnmarshalJSON: when state type is nil return a error message Signed-off-by: André R. de Miranda <andre@galgo.tech>
Signed-off-by: André R. de Miranda <andre@galgo.tech>
Signed-off-by: André R. de Miranda <andre@galgo.tech>
…rom parser/parser_test.go Signed-off-by: André R. de Miranda <andre@galgo.tech>
@ribeiromiranda can u take a look at the CI errors? |
f5fad5d
to
26f0b21
Compare
… and "end" validator: add to BaseState; fix failed unit tests; refactor SwitchState validator. Signed-off-by: André R. de Miranda <andre@galgo.tech>
247d479
to
03e4dc8
Compare
Signed-off-by: André R. de Miranda <andre@galgo.tech>
…equired in the `Transition` struct field. Signed-off-by: André R. de Miranda <andre@galgo.tech>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few non-blocking comments. Well done!!
Signed-off-by: André R. de Miranda <andre@galgo.tech>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spolti wanna take a final look at it?
Yes |
Many thanks @ribeiromiranda. |
Workflow parameters validations
Issue: #153