Skip to content

Commit

Permalink
Merge pull request #188 from PDOK/omitempty-on-extent-srs
Browse files Browse the repository at this point in the history
chore(config): consistent use of omitempty in yaml and json tags
  • Loading branch information
kad-korpem authored May 15, 2024
2 parents c19eba3 + a60c084 commit ce7ba70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,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"`
Expand Down

0 comments on commit ce7ba70

Please sign in to comment.