Skip to content

Commit

Permalink
Merge commit 'ddef3b4a06be6f66dc1384e31a408ee7658bac1a'
Browse files Browse the repository at this point in the history
* commit 'ddef3b4a06be6f66dc1384e31a408ee7658bac1a':
  Squashed 'json/' changes from ba3a90534..329efe59c
  • Loading branch information
Julian committed Oct 20, 2021
2 parents 7a3c828 + ddef3b4 commit d0dd0fe
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 3 deletions.
10 changes: 7 additions & 3 deletions json/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,13 @@ directory. This is:

## Coverage

Drafts 07, 06, 04, and 03 should have full coverage, with tests for drafts 06,
07, 2019-09 and 2020-12 being considered current and actively supported.
Drafts 2019-09 and 2020-12 are almost fully covered.
All JSON Schema specification releases should be well covered by this suite,
including drafts 2020-12, 2019-09, 07, 06, 04 and 03. Additional coverage is
always welcome, particularly for bugs encountered in real-world
implementations.

Drafts 04 and 03 are considered "frozen" in that less effort is put in to
backport new tests to these versions.

Contributions are very welcome, especially from implementers as they add support
to their own implementations.
Expand Down
15 changes: 15 additions & 0 deletions json/tests/draft-next/dependentSchemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,21 @@
"description": "wrong type both",
"data": {"foo": "quux", "bar": "quux"},
"valid": false
},
{
"description": "ignores arrays",
"data": ["bar"],
"valid": true
},
{
"description": "ignores strings",
"data": "foobar",
"valid": true
},
{
"description": "ignores other non-objects",
"data": 12,
"valid": true
}
]
},
Expand Down
15 changes: 15 additions & 0 deletions json/tests/draft2019-09/dependentSchemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,21 @@
"description": "wrong type both",
"data": {"foo": "quux", "bar": "quux"},
"valid": false
},
{
"description": "ignores arrays",
"data": ["bar"],
"valid": true
},
{
"description": "ignores strings",
"data": "foobar",
"valid": true
},
{
"description": "ignores other non-objects",
"data": 12,
"valid": true
}
]
},
Expand Down
15 changes: 15 additions & 0 deletions json/tests/draft2020-12/dependentSchemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,21 @@
"description": "wrong type both",
"data": {"foo": "quux", "bar": "quux"},
"valid": false
},
{
"description": "ignores arrays",
"data": ["bar"],
"valid": true
},
{
"description": "ignores strings",
"data": "foobar",
"valid": true
},
{
"description": "ignores other non-objects",
"data": 12,
"valid": true
}
]
},
Expand Down

0 comments on commit d0dd0fe

Please sign in to comment.