-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix(schema): stages don't require name field #105
Conversation
Codecov Report
@@ Coverage Diff @@
## master #105 +/- ##
=======================================
Coverage 99.67% 99.67%
=======================================
Files 44 44
Lines 3096 3096
=======================================
Hits 3086 3086
Misses 6 6
Partials 4 4
|
Do you have an example of where that’s true? I thought that field was required since the compiler has some dependencies on it. https://github.com/go-vela/compiler/blob/master/compiler/native/transform.go#L20 |
not sure i understand. based on our example in the docs: https://go-vela.github.io/docs/concepts/pipeline/stages/#syntax and my own usage, it's not required to supply |
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.
LGTM
@wass3r Yeah, you're right looks like it gets implicitly set |
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.
LGTM 🐬
Cool, yea.. we require it internally, but from a user's perspective it's optional. sorry for confusion. |
No problem! I just remembered seeing the |
name is set to key if not supplied as evidenced by: https://github.com/go-vela/types/blob/master/yaml/stage.go#L78