From a60c08407bd6158d5a56bb91662aaedfe0234655 Mon Sep 17 00:00:00 2001 From: Michiel Korpel Date: Wed, 15 May 2024 09:21:34 +0200 Subject: [PATCH] chore(config): consistent use of omitempty in yaml and json tags --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 7fe8f0f2..304fc8c8 100644 --- a/config/config.go +++ b/config/config.go @@ -835,7 +835,7 @@ type Extent struct { // Projection (SRS/CRS) to be used. When none is provided WGS84 (http://www.opengis.net/def/crs/OGC/1.3/CRS84) is used. // +optional // +kubebuilder:validation:Pattern=`^EPSG:\d+$` - Srs string `yaml:"srs" json:"srs" validate:"omitempty,startswith=EPSG:"` + Srs string `yaml:"srs,omitempty" json:"srs,omitempty" validate:"omitempty,startswith=EPSG:"` // Geospatial extent Bbox []string `yaml:"bbox" json:"bbox"`