You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/v3/wms_types.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -138,8 +138,8 @@ type ConfigMapRef struct {
138
138
// +kubebuilder:validation:XValidation:message="A layer should have keywords when visible", rule="!self.visible || has(self.keywords)"
139
139
// +kubebuilder:validation:XValidation:message="A layer should have a title when visible", rule="!self.visible || has(self.title)"
140
140
// +kubebuilder:validation:XValidation:message="A layer should have an abstract when visible", rule="!self.visible || has(self.abstract)"
141
-
// +kubebuilder:validation:XValidation:message="A layer should have an authority when visible", rule="!self.visible || has(self.authority)"
142
-
// +kubebuilder:validation:XValidation:message="A layer should have a datasetMetadataUrl when visible", rule="!self.visible || has(self.datasetMetadataUrl)"
141
+
// +kubebuilder:validation:XValidation:message="A layer should have an authority when visible and has a name", rule="!(self.visible && has(self.name)) || has(self.authority)"
142
+
// +kubebuilder:validation:XValidation:message="A layer should have a datasetMetadataUrl when visible and has a name", rule="!(self.visible && has(self.name)) || has(self.datasetMetadataUrl)"
143
143
typeLayerstruct {
144
144
// Name of the layer, required for layers on the 2nd or 3rd level
145
145
// +kubebuilder:validations:MinLength:=1
@@ -163,7 +163,7 @@ type Layer struct {
163
163
164
164
// Whether or not the layer is visible. At least one of the layers must be visible.
0 commit comments