Skip to content

Commit

Permalink
fix(schema): stages don't require name field (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3r committed Aug 24, 2020
1 parent 8988a28 commit 3e7f85b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yaml/stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type (
// of a stage in a pipeline.
// nolint:lll // jsonschema will cause long lines
Stage struct {
Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"required,minLength=1,description=Unique identifier for the stage in the pipeline.\nReference: https://go-vela.github.io/docs/concepts/pipeline/stages/"`
Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"minLength=1,description=Unique identifier for the stage in the pipeline.\nReference: https://go-vela.github.io/docs/concepts/pipeline/stages/"`
Needs raw.StringSlice `yaml:"needs,omitempty" json:"needs,omitempty" jsonschema:"description=Stages that must complete before starting the current one.\nReference: https://go-vela.github.io/docs/concepts/pipeline/stages/needs/"`
Steps StepSlice `yaml:"steps,omitempty" json:"steps,omitempty" jsonschema:"required,description=Sequential execution instructions for the stage.\nReference: https://go-vela.github.io/docs/concepts/pipeline/stages/steps/"`
}
Expand Down

0 comments on commit 3e7f85b

Please sign in to comment.