1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-16 03:52:12 +02:00

fix(jsonschema): version is not required on v1.x

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2023-11-04 00:38:55 +00:00
parent 780fcc7163
commit 45839c13c3
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -1149,7 +1149,7 @@ type Source struct {
// Project includes all project configuration.
type Project struct {
Version int `yaml:"version" json:"version" jsonschema:"enum=1,default=1"`
Version int `yaml:"version,omitempty" json:"version,omitempty" jsonschema:"enum=1,default=1"`
ProjectName string `yaml:"project_name,omitempty" json:"project_name,omitempty"`
Env []string `yaml:"env,omitempty" json:"env,omitempty"`
Release Release `yaml:"release,omitempty" json:"release,omitempty"`