jsonschema: validate logic keywords
Validate keywords that combine schemas with various logical operators. Also add iterators over schemas. Now we only need them to skip some tests, but later they will come in handy for non-test code. Change-Id: Idaf41efea4d693b6be0ee5c6c3a527664b8c472f Reviewed-on: https://go-review.googlesource.com/c/tools/+/668115 Reviewed-by: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
061f842459
commit
9396e7f6a6
1 changed files with 1517 additions and 5 deletions
|
|
@ -50,8 +50,10 @@ func TestValidate(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
for _, g := range groups {
|
||||
if g.Schema.Properties != nil {
|
||||
t.Skip("schema has properties")
|
||||
for s := range g.Schema.all() {
|
||||
if s.Properties != nil {
|
||||
t.Skip("schema or subschema has properties")
|
||||
}
|
||||
}
|
||||
rs := &ResolvedSchema{root: g.Schema}
|
||||
t.Run(g.Description, func(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue