We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ef44be commit fda3a01Copy full SHA for fda3a01
tests/validation_test.go
@@ -28,6 +28,11 @@ func TestMaxStringLength(t *testing.T) {
28
data: `{"myString": "hello"}`,
29
wantErr: nil,
30
},
31
+ {
32
+ desc: "myString too long",
33
+ data: `{"myString": "hello world"}`,
34
+ wantErr: errors.New("field myString length: must be <= 5"),
35
+ },
36
{
37
desc: "myString not present",
38
data: `{}`,
0 commit comments