@@ -47,8 +47,8 @@ type WFS struct {
4747 metav1.TypeMeta `json:",inline"`
4848 metav1.ObjectMeta `json:"metadata,omitempty"`
4949
50- Spec WFSSpec `json:"spec,omitempty "`
51- Status shared_model.OperatorStatus `json:"status,omitempty"`
50+ Spec WFSSpec `json:"spec"`
51+ Status * shared_model.OperatorStatus `json:"status,omitempty"`
5252}
5353
5454// +kubebuilder:object:root=true
@@ -73,28 +73,28 @@ type WFSSpec struct {
7373 // Optional strategic merge patch for the pod in the deployment. E.g. to patch the resources or add extra env vars.
7474 PodSpecPatch * corev1.PodSpec `json:"podSpecPatch,omitempty"`
7575 HorizontalPodAutoscalerPatch * autoscalingv2.HorizontalPodAutoscalerSpec `json:"horizontalPodAutoscalerPatch,omitempty"`
76- Options Options `json:"options,omitempty"`
76+ Options Options `json:"options"` // default waardes, mogelijk omitempty
7777 Service WFSService `json:"service"`
7878}
7979
8080type WFSService struct {
81- Prefix string `json:"prefix"`
81+ Prefix string `json:"prefix"` // XML Namespace prefix, mag niet met een cijfer beginnen
8282 URL string `json:"url"`
8383 Inspire * Inspire `json:"inspire,omitempty"`
8484 Mapfile * Mapfile `json:"mapfile,omitempty"`
8585 OwnerInfoRef string `json:"ownerInfoRef"`
8686 Title string `json:"title"`
8787 Abstract string `json:"abstract"`
8888 Keywords []string `json:"keywords"`
89- Fees * string `json:"fees,omitempty"`
89+ Fees * string `json:"fees,omitempty"` // maybe deprecated, has default value in capabilities-generator
9090 // +kubebuilder:default="https://creativecommons.org/publicdomain/zero/1.0/deed.nl"
9191 AccessConstraints string `json:"accessConstraints"`
9292 DefaultCrs string `json:"defaultCrs"`
93- OtherCrs []string `json:"otherCrs,omitempty"`
94- Bbox * Bbox `json:"bbox,omitempty "`
93+ OtherCrs []string `json:"otherCrs,omitempty"` // mag default lijstje zijn
94+ Bbox Bbox `json:"bbox"`
9595 // CountDefault -> wfs_maxfeatures in mapfile
96- CountDefault * string `json:"countDefault,omitempty"`
97- FeatureTypes []FeatureType `json:"featureTypes"`
96+ CountDefault * string `json:"countDefault,omitempty"` // TODO ook goed zetten in capabilities, mogelijk int maken
97+ FeatureTypes []FeatureType `json:"featureTypes"` // TODO minlength 1
9898}
9999
100100type Bbox struct {
@@ -108,15 +108,15 @@ type FeatureType struct {
108108 Title string `json:"title"`
109109 Abstract string `json:"abstract"`
110110 Keywords []string `json:"keywords"`
111- DatasetMetadataURL MetadataURL `json:"datasetMetadataUrl"`
112- Bbox * FeatureBbox `json:"bbox,omitempty "`
111+ DatasetMetadataURL * MetadataURL `json:"datasetMetadataUrl,omitempty "`
112+ Bbox FeatureBbox `json:"bbox"`
113113 Data Data `json:"data"`
114114}
115115
116116type FeatureBbox struct {
117117 //nolint:tagliatelle
118- DefaultCRS shared_model.BBox `json:"defaultCRS"`
119- WGS84 * shared_model.BBox `json:"wgs84,omitempty "`
118+ DefaultCRS shared_model.BBox `json:"defaultCRS"`
119+ WGS84 shared_model.BBox `json:"wgs84"`
120120}
121121
122122func (wfs * WFS ) HasPostgisData () bool {
0 commit comments