Skip to content

Commit fc6141a

Browse files
author
Jelle Dijkstra
committed
Optional contraints inline
1 parent 4d7f967 commit fc6141a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pkg/wms130/getcapabilities_response.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ func (gc GetCapabilitiesResponse) ToXML() []byte {
3636

3737
// GetCapabilitiesResponse base struct
3838
type GetCapabilitiesResponse struct {
39-
XMLName xml.Name `xml:"WMS_Capabilities" yaml:"wmsCapabilities"`
40-
Namespaces *Namespaces `yaml:"namespaces,omitempty"`
39+
XMLName xml.Name `xml:"WMS_Capabilities" yaml:"wmsCapabilities"`
40+
*Namespaces `yaml:"namespaces,omitempty"`
4141
WMSService WMSService `xml:"Service" yaml:"service"`
4242
Capabilities Capabilities `xml:"Capability" yaml:"capability"`
4343
}
@@ -56,15 +56,15 @@ type Namespaces struct {
5656

5757
// WMSService struct containing the base service information filled from the template
5858
type WMSService struct {
59-
Name string `xml:"Name" yaml:"name"`
60-
Title string `xml:"Title" yaml:"title"`
61-
Abstract *string `xml:"Abstract" yaml:"abstract"`
62-
KeywordList *Keywords `xml:"KeywordList" yaml:"keywordList"`
63-
OnlineResource OnlineResource `xml:"OnlineResource" yaml:"onlineResource"`
64-
ContactInformation *ContactInformation `xml:"ContactInformation" yaml:"contactInformation"`
65-
Fees *string `xml:"Fees" yaml:"fees"`
66-
AccessConstraints *string `xml:"AccessConstraints" yaml:"accessConstraints"`
67-
OptionalConstraints *OptionalConstraints `xml:"OptionalConstraints" yaml:"optionalConstraints,omitempty"`
59+
Name string `xml:"Name" yaml:"name"`
60+
Title string `xml:"Title" yaml:"title"`
61+
Abstract *string `xml:"Abstract" yaml:"abstract"`
62+
KeywordList *Keywords `xml:"KeywordList" yaml:"keywordList"`
63+
OnlineResource OnlineResource `xml:"OnlineResource" yaml:"onlineResource"`
64+
ContactInformation *ContactInformation `xml:"ContactInformation" yaml:"contactInformation"`
65+
Fees *string `xml:"Fees" yaml:"fees"`
66+
AccessConstraints *string `xml:"AccessConstraints" yaml:"accessConstraints"`
67+
*OptionalConstraints `xml:"OptionalConstraints" yaml:"optionalConstraints,omitempty"`
6868
}
6969

7070
// ContactInformation struct containing the information about a contact person for the service

0 commit comments

Comments
 (0)