From 3e7f85be5d18e6fe39e992946a2b7eaa903800d7 Mon Sep 17 00:00:00 2001 From: David May <1301201+wass3r@users.noreply.github.com> Date: Mon, 24 Aug 2020 08:26:33 -0500 Subject: [PATCH] fix(schema): stages don't require name field (#105) --- yaml/stage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml/stage.go b/yaml/stage.go index 2d8eff1d..33712ecb 100644 --- a/yaml/stage.go +++ b/yaml/stage.go @@ -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/"` }