Skip to content

Commit

Permalink
Merge pull request #1827 from thaJeztah/bump_go_json_schema_1.1.0
Browse files Browse the repository at this point in the history
bump github.com/xeipuuv/gojsonschema v1.1.0
  • Loading branch information
kolyshkin authored Oct 11, 2019
2 parents 82d88e7 + 7b8c6a6 commit 83d0c5d
Show file tree
Hide file tree
Showing 20 changed files with 1,926 additions and 556 deletions.
10 changes: 7 additions & 3 deletions cli/compose/schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions vendor.conf
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ github.com/syndtr/gocapability d98352740cb2c55f81556b63d4a1
github.com/theupdateframework/notary d6e1431feb32348e0650bf7551ac5cffd01d857b # v0.6.1
github.com/tonistiigi/fsutil 7f9f9232dd24c4c9c68ab3c8030c4edcaeac1c32
github.com/tonistiigi/units 6950e57a87eaf136bbe44ef2ec8e75b9e3569de2
github.com/xeipuuv/gojsonpointer 4e3ac2762d5f479393488629ee9370b50873b3a6
github.com/xeipuuv/gojsonpointer 02993c407bfbf5f6dae44c4f4b1cf6a39b5fc5bb
github.com/xeipuuv/gojsonreference bd5ef7bd5415a7ac448318e64f11a24cd21e594b
github.com/xeipuuv/gojsonschema 93e72a773fade158921402d6a24c819b48aba29d
github.com/xeipuuv/gojsonschema f971f3cd73b2899de6923801c147f075263e0c50 # v1.1.0
golang.org/x/crypto 88737f569e3a9c7ab309cdc09a07fe7fc87233c3
golang.org/x/net f3200d17e092c607f615320ecaad13d87ad9a2b3
golang.org/x/oauth2 ef147856a6ddbb60760db74283d2424e98c87bff
Expand Down
2 changes: 1 addition & 1 deletion vendor/github.com/xeipuuv/gojsonpointer/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions vendor/github.com/xeipuuv/gojsonpointer/pointer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 83d0c5d

Please sign in to comment.