summaryrefslogtreecommitdiff
path: root/json/tests/draft2020-12
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2022-06-30 17:16:21 -0400
committerJulian Berman <Julian@GrayVines.com>2022-06-30 17:16:21 -0400
commitafc22f09e74d696ab00be8a711bbc5c2a15327b7 (patch)
tree8acd4e5a25052f8faf984ea99646d718836ec10a /json/tests/draft2020-12
parent03965fdc0b7f39040afcb101ebe66736ddd46169 (diff)
parentcfff411af7d1e9b42b10ba36e5b8765f3eb1028b (diff)
downloadjsonschema-afc22f09e74d696ab00be8a711bbc5c2a15327b7.tar.gz
Merge commit 'cfff411af7d1e9b42b10ba36e5b8765f3eb1028b'
* commit 'cfff411af7d1e9b42b10ba36e5b8765f3eb1028b': Squashed 'json/' changes from 39d1d24d..1047a1aa
Diffstat (limited to 'json/tests/draft2020-12')
-rw-r--r--json/tests/draft2020-12/unevaluatedItems.json44
1 files changed, 7 insertions, 37 deletions
diff --git a/json/tests/draft2020-12/unevaluatedItems.json b/json/tests/draft2020-12/unevaluatedItems.json
index d113ea6..fbd4b48 100644
--- a/json/tests/draft2020-12/unevaluatedItems.json
+++ b/json/tests/draft2020-12/unevaluatedItems.json
@@ -1,10 +1,7 @@
[
{
"description": "unevaluatedItems true",
- "schema": {
- "type": "array",
- "unevaluatedItems": true
- },
+ "schema": { "unevaluatedItems": true },
"tests": [
{
"description": "with no unevaluated items",
@@ -20,10 +17,7 @@
},
{
"description": "unevaluatedItems false",
- "schema": {
- "type": "array",
- "unevaluatedItems": false
- },
+ "schema": { "unevaluatedItems": false },
"tests": [
{
"description": "with no unevaluated items",
@@ -39,10 +33,7 @@
},
{
"description": "unevaluatedItems as schema",
- "schema": {
- "type": "array",
- "unevaluatedItems": { "type": "string" }
- },
+ "schema": { "unevaluatedItems": { "type": "string" } },
"tests": [
{
"description": "with no unevaluated items",
@@ -64,7 +55,6 @@
{
"description": "unevaluatedItems with uniform items",
"schema": {
- "type": "array",
"items": { "type": "string" },
"unevaluatedItems": false
},
@@ -79,7 +69,6 @@
{
"description": "unevaluatedItems with tuple",
"schema": {
- "type": "array",
"prefixItems": [
{ "type": "string" }
],
@@ -101,7 +90,6 @@
{
"description": "unevaluatedItems with items",
"schema": {
- "type": "array",
"prefixItems": [
{ "type": "string" }
],
@@ -119,7 +107,6 @@
{
"description": "unevaluatedItems with nested tuple",
"schema": {
- "type": "array",
"prefixItems": [
{ "type": "string" }
],
@@ -202,16 +189,13 @@
{
"description": "unevaluatedItems with nested unevaluatedItems",
"schema": {
- "type": "array",
"allOf": [
{
"prefixItems": [
{ "type": "string" }
]
},
- {
- "unevaluatedItems": true
- }
+ { "unevaluatedItems": true }
],
"unevaluatedItems": false
},
@@ -231,7 +215,6 @@
{
"description": "unevaluatedItems with anyOf",
"schema": {
- "type": "array",
"prefixItems": [
{ "const": "foo" }
],
@@ -278,7 +261,6 @@
{
"description": "unevaluatedItems with oneOf",
"schema": {
- "type": "array",
"prefixItems": [
{ "const": "foo" }
],
@@ -314,7 +296,6 @@
{
"description": "unevaluatedItems with not",
"schema": {
- "type": "array",
"prefixItems": [
{ "const": "foo" }
],
@@ -339,7 +320,6 @@
{
"description": "unevaluatedItems with if/then/else",
"schema": {
- "type": "array",
"prefixItems": [
{ "const": "foo" }
],
@@ -392,7 +372,6 @@
{
"description": "unevaluatedItems with boolean schemas",
"schema": {
- "type": "array",
"allOf": [true],
"unevaluatedItems": false
},
@@ -412,7 +391,6 @@
{
"description": "unevaluatedItems with $ref",
"schema": {
- "type": "array",
"$ref": "#/$defs/bar",
"prefixItems": [
{ "type": "string" }
@@ -447,9 +425,7 @@
{
"prefixItems": [ true ]
},
- {
- "unevaluatedItems": false
- }
+ { "unevaluatedItems": false }
]
},
"tests": [
@@ -463,14 +439,10 @@
{
"description": "item is evaluated in an uncle schema to unevaluatedItems",
"schema": {
- "type": "object",
"properties": {
"foo": {
- "type": "array",
"prefixItems": [
- {
- "type": "string"
- }
+ { "type": "string" }
],
"unevaluatedItems": false
}
@@ -481,9 +453,7 @@
"foo": {
"prefixItems": [
true,
- {
- "type": "string"
- }
+ { "type": "string" }
]
}
}