You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iferr:=ValidateSchema(schema, json.RawMessage(`{"path":"README.md","tags":[3]}`)); err==nil||!strings.Contains(err.Error(), "input.tags[0] must be string") {
50
52
t.Fatalf("err = %v", err)
51
53
}
54
+
iferr:=ValidateSchema(schema, json.RawMessage(`{"path":"README.md","mode":"delete"}`)); err==nil||!strings.Contains(err.Error(), "input.mode must be one of read, write") {
55
+
t.Fatalf("err = %v", err)
56
+
}
57
+
iferr:=ValidateSchema(schema, json.RawMessage(`{"path":"README.md","count":3}`)); err==nil||!strings.Contains(err.Error(), "input.count must be one of 1, 2") {
0 commit comments