From 97677debe81623791307c7ef7c01114549d20be7 Mon Sep 17 00:00:00 2001 From: braydonk Date: Sat, 24 Aug 2024 13:46:41 +0000 Subject: [PATCH] switch to package v4 for go 1.18 compatibility --- go.mod | 5 +---- go.sum | 2 ++ internal/jsonschema/schema_test.go | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index e8aeb0d..7e359ee 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,4 @@ require ( github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 ) -require ( - github.com/santhosh-tekuri/jsonschema/v6 v6.0.1 // indirect - golang.org/x/text v0.14.0 // indirect -) +require github.com/santhosh-tekuri/jsonschema/v4 v4.0.0 // indirect diff --git a/go.sum b/go.sum index c95f917..68e40f7 100644 --- a/go.sum +++ b/go.sum @@ -12,6 +12,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= +github.com/santhosh-tekuri/jsonschema/v4 v4.0.0 h1:5yvbsmEfOQE2+YuRudUhXPzMQK6P74AR3LafM5zrzf0= +github.com/santhosh-tekuri/jsonschema/v4 v4.0.0/go.mod h1:P2UNYJ2xnL4zRyQ2obmD35HiejSJhHTKwMcckhPucG4= github.com/santhosh-tekuri/jsonschema/v6 v6.0.1 h1:PKK9DyHxif4LZo+uQSgXNqs0jj5+xZwwfKHgph2lxBw= github.com/santhosh-tekuri/jsonschema/v6 v6.0.1/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= diff --git a/internal/jsonschema/schema_test.go b/internal/jsonschema/schema_test.go index 5fcbd15..59eb453 100644 --- a/internal/jsonschema/schema_test.go +++ b/internal/jsonschema/schema_test.go @@ -17,7 +17,7 @@ package jsonschema_test import ( "testing" - "github.com/santhosh-tekuri/jsonschema/v6" + "github.com/santhosh-tekuri/jsonschema/v4" ) func TestJSONSchemaIsValid(t *testing.T) {