bump github.com/xeipuuv/gojsonschema v1.1.0

full diff: https://github.com/xeipuuv/gojsonschema/compare/93e72a773fade158921402d6a24c819b48aba29d...f971f3cd73b2899de6923801c147f075263e0c50

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2019-10-10 23:00:43 +02:00
parent 3e07fa728a
commit 06f34ba507
18 changed files with 1933 additions and 563 deletions
+7 -3
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
}