From f3849e2bbe3fc2463d9e502e6e0a52f8c347780f Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 27 Sep 2022 10:12:34 -0300 Subject: [PATCH] fix: client key and cert should not be required (#3409) closes #3407 Signed-off-by: Sheridan C Rawlins Signed-off-by: Carlos A Becker Co-authored-by: Sheridan C Rawlins --- pkg/config/config.go | 4 ++-- www/docs/static/schema.json | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 86407bfdc8e..ae2ebe9258a 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -854,8 +854,8 @@ type Upload struct { Mode string `yaml:"mode,omitempty" json:"mode,omitempty"` Method string `yaml:"method,omitempty" json:"method,omitempty"` ChecksumHeader string `yaml:"checksum_header,omitempty" json:"checksum_header,omitempty"` - ClientX509Cert string `yaml:"client_x509_cert" json:"client_x509_cert"` - ClientX509Key string `yaml:"client_x509_key" json:"client_x509_key"` + ClientX509Cert string `yaml:"client_x509_cert,omitempty" json:"client_x509_cert,omitempty"` + ClientX509Key string `yaml:"client_x509_key,omitempty" json:"client_x509_key,omitempty"` TrustedCerts string `yaml:"trusted_certificates,omitempty" json:"trusted_certificates,omitempty"` Checksum bool `yaml:"checksum,omitempty" json:"checksum,omitempty"` Signature bool `yaml:"signature,omitempty" json:"signature,omitempty"` diff --git a/www/docs/static/schema.json b/www/docs/static/schema.json index 2142906bbf2..2fff7061e27 100644 --- a/www/docs/static/schema.json +++ b/www/docs/static/schema.json @@ -2538,11 +2538,7 @@ } }, "additionalProperties": false, - "type": "object", - "required": [ - "client_x509_cert", - "client_x509_key" - ] + "type": "object" }, "Webhook": { "properties": { @@ -2575,4 +2571,4 @@ } }, "description": "goreleaser configuration definition file" - } \ No newline at end of file + }