bump github.com/xeipuuv/gojsonschema v1.1.0

full diff: 93e72a773f...f971f3cd73

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2019-04-13 02:56:09 +02:00
parent 3e07fa728a
commit 06f34ba507
18 changed files with 1933 additions and 563 deletions

View File

@ -18,15 +18,19 @@ const (
type portsFormatChecker struct{}
func (checker portsFormatChecker) IsFormat(input string) bool {
func (checker portsFormatChecker) IsFormat(input interface{}) bool {
// TODO: implement this
return true
}
type durationFormatChecker struct{}
func (checker durationFormatChecker) IsFormat(input string) bool {
_, err := time.ParseDuration(input)
func (checker durationFormatChecker) IsFormat(input interface{}) bool {
value, ok := input.(string)
if !ok {
return false
}
_, err := time.ParseDuration(value)
return err == nil
}