@@ -34,15 +34,15 @@ const objectSchema = `{
3434func Test_SchemaWithNilOptions (t * testing.T ) {
3535 jsch , err := NewCompiledSchema ("test" , []byte (stringSchema ), nil )
3636
37- require .Nil (t , err , "Failed to compile Schema: %v" , err )
37+ require .Nil (t , err , "Failed to compile Schema" )
3838 require .NotNil (t , jsch , "Did not return a compiled schema" )
3939}
4040
4141func Test_SchemaWithDefaultOptions (t * testing.T ) {
4242 valOptions := config .NewValidationOptions ()
4343 jsch , err := NewCompiledSchema ("test" , []byte (stringSchema ), valOptions )
4444
45- require .Nil (t , err , "Failed to compile Schema: %v" , err )
45+ require .Nil (t , err , "Failed to compile Schema" )
4646 require .NotNil (t , jsch , "Did not return a compiled schema" )
4747}
4848
@@ -51,15 +51,15 @@ func Test_SchemaWithOptions(t *testing.T) {
5151
5252 jsch , err := NewCompiledSchema ("test" , []byte (stringSchema ), valOptions )
5353
54- require .Nil (t , err , "Failed to compile Schema: %v" , err )
54+ require .Nil (t , err , "Failed to compile Schema" )
5555 require .NotNil (t , jsch , "Did not return a compiled schema" )
5656}
5757
5858func Test_ObjectSchema (t * testing.T ) {
5959 valOptions := config .NewValidationOptions ()
6060 jsch , err := NewCompiledSchema ("test" , []byte (objectSchema ), valOptions )
6161
62- require .Nil (t , err , "Failed to compile Schema: %v" , err )
62+ require .Nil (t , err , "Failed to compile Schema" )
6363 require .NotNil (t , jsch , "Did not return a compiled schema" )
6464}
6565
0 commit comments