File tree 3 files changed +28
-0
lines changed
3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ package configuration
2
+
3
+ import (
4
+ "io/ioutil"
5
+ "testing"
6
+
7
+ "github.com/stretchr/testify/require"
8
+ "github.com/xeipuuv/gojsonschema"
9
+ )
10
+
11
+ func TestConfigurationSchemaValidity (t * testing.T ) {
12
+ schemaBytes , err := ioutil .ReadFile ("configuration.schema.json" )
13
+ require .NoError (t , err )
14
+
15
+ jl := gojsonschema .NewBytesLoader (schemaBytes )
16
+ sl := gojsonschema .NewSchemaLoader ()
17
+ _ , err = sl .Compile (jl )
18
+ require .NoError (t , err )
19
+ }
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ require (
49
49
50
50
require (
51
51
github.com/rogpeppe/go-internal v1.3.0
52
+ github.com/xeipuuv/gojsonschema v1.2.0
52
53
go.bug.st/testifyjson v1.1.1
53
54
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
54
55
gopkg.in/yaml.v3 v3.0.1
@@ -88,6 +89,8 @@ require (
88
89
github.com/subosito/gotenv v1.2.0 // indirect
89
90
github.com/ulikunitz/xz v0.5.11 // indirect
90
91
github.com/xanzy/ssh-agent v0.2.1 // indirect
92
+ github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
93
+ github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
91
94
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect
92
95
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
93
96
gopkg.in/ini.v1 v1.62.0 // indirect
Original file line number Diff line number Diff line change @@ -342,6 +342,12 @@ github.com/ulikunitz/xz v0.5.11 h1:kpFauv27b6ynzBNT/Xy+1k+fK4WswhN/6PN5WhFAGw8=
342
342
github.com/ulikunitz/xz v0.5.11 /go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14 =
343
343
github.com/xanzy/ssh-agent v0.2.1 h1:TCbipTQL2JiiCprBWx9frJ2eJlCYT00NmctrHxVAr70 =
344
344
github.com/xanzy/ssh-agent v0.2.1 /go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4 =
345
+ github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c =
346
+ github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f /go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU =
347
+ github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0 =
348
+ github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 /go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ =
349
+ github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74 =
350
+ github.com/xeipuuv/gojsonschema v1.2.0 /go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y =
345
351
github.com/yuin/goldmark v1.1.25 /go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74 =
346
352
github.com/yuin/goldmark v1.1.27 /go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74 =
347
353
github.com/yuin/goldmark v1.1.32 /go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74 =
You can’t perform that action at this time.
0 commit comments