Skip to content

Commit

Permalink
remove spec, has become getcapabilities reponse doc + update resp Val…
Browse files Browse the repository at this point in the history
…idation interface
  • Loading branch information
WouterVisscher committed Jul 21, 2020
1 parent 072479f commit d57c4a4
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion pkg/ows/operationresponse.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type OperationResponse interface {
Type() string
Service() string
Version() string
Validate() bool
Validate() Exception

// ParseXML([]byte) Exception
ParseYAML([]byte) Exception
Expand Down
9 changes: 0 additions & 9 deletions pkg/ows/specification.go

This file was deleted.

6 changes: 4 additions & 2 deletions pkg/wcs201/response/getcapabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package wcs201
import (
"encoding/xml"
"regexp"

"github.com/pdok/ogc-specifications/pkg/ows"
)

//
Expand Down Expand Up @@ -34,8 +36,8 @@ func (gc *GetCapabilities) Version() string {
}

// Validate function of the wfs200 spec
func (gc *GetCapabilities) Validate() bool {
return false
func (gc *GetCapabilities) Validate() ows.Exception {
return nil
}

// BuildXML builds a GetCapabilities response object
Expand Down
6 changes: 4 additions & 2 deletions pkg/wfs200/response/getcapabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package response
import (
"encoding/xml"
"regexp"

"github.com/pdok/ogc-specifications/pkg/ows"
)

//
Expand Down Expand Up @@ -34,8 +36,8 @@ func (gc *GetCapabilities) Version() string {
}

// Validate function of the wfs200 spec
func (gc *GetCapabilities) Validate() bool {
return false
func (gc *GetCapabilities) Validate() ows.Exception {
return nil
}

// BuildXML builds a GetCapabilities response object
Expand Down
6 changes: 4 additions & 2 deletions pkg/wms130/response/getcapabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package response
import (
"encoding/xml"
"regexp"

"github.com/pdok/ogc-specifications/pkg/ows"
)

// Contains the WMS130 struct
Expand Down Expand Up @@ -34,8 +36,8 @@ func (gc *GetCapabilities) Version() string {
}

// Validate function of the wms130 spec
func (gc *GetCapabilities) Validate() bool {
return false
func (gc *GetCapabilities) Validate() ows.Exception {
return nil
}

// BuildXML builds a GetCapabilities response object
Expand Down
6 changes: 4 additions & 2 deletions pkg/wmts100/response/getcapabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package response
import (
"encoding/xml"
"regexp"

"github.com/pdok/ogc-specifications/pkg/ows"
)

//
Expand Down Expand Up @@ -32,8 +34,8 @@ func (gc *GetCapabilities) Version() string {
}

// Validate function of the wfs200 spec
func (gc *GetCapabilities) Validate() bool {
return false
func (gc *GetCapabilities) Validate() ows.Exception {
return nil
}

// BuildXML builds a GetCapabilities response object
Expand Down

0 comments on commit d57c4a4

Please sign in to comment.