jspg progress
This commit is contained in:
115
tests/fixtures/dynamicRef.json
vendored
115
tests/fixtures/dynamicRef.json
vendored
@ -641,8 +641,25 @@
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "http://localhost:1234/draft2020-12/strict-tree.json",
|
||||
"$dynamicAnchor": "node",
|
||||
"$ref": "tree.json",
|
||||
"unevaluatedProperties": false
|
||||
"$ref": "#/$defs/tree",
|
||||
"$defs": {
|
||||
"tree": {
|
||||
"description": "tree schema, extensible",
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "http://localhost:1234/draft2020-12/tree.json",
|
||||
"$dynamicAnchor": "node",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": true,
|
||||
"children": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$dynamicRef": "#node"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -674,7 +691,7 @@
|
||||
"schema": {
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "http://localhost:1234/draft2020-12/strict-extendible.json",
|
||||
"$ref": "extendible-dynamic-ref.json",
|
||||
"$ref": "#/$defs/remote_extendible",
|
||||
"$defs": {
|
||||
"elements": {
|
||||
"$dynamicAnchor": "elements",
|
||||
@ -683,8 +700,29 @@
|
||||
},
|
||||
"required": [
|
||||
"a"
|
||||
]
|
||||
},
|
||||
"remote_extendible": {
|
||||
"description": "extendible array",
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "http://localhost:1234/draft2020-12/extendible-dynamic-ref.json",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"elements": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$dynamicRef": "#elements"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"elements"
|
||||
],
|
||||
"additionalProperties": false
|
||||
"$defs": {
|
||||
"elements": {
|
||||
"$dynamicAnchor": "elements"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -725,9 +763,33 @@
|
||||
"schema": {
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "http://localhost:1234/draft2020-12/strict-extendible-allof-defs-first.json",
|
||||
"$defs": {
|
||||
"remote_extendible": {
|
||||
"description": "extendible array",
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "http://localhost:1234/draft2020-12/extendible-dynamic-ref.json",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"elements": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$dynamicRef": "#elements"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"elements"
|
||||
],
|
||||
"$defs": {
|
||||
"elements": {
|
||||
"$dynamicAnchor": "elements"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "extendible-dynamic-ref.json"
|
||||
"$ref": "#/$defs/remote_extendible"
|
||||
},
|
||||
{
|
||||
"$defs": {
|
||||
@ -782,6 +844,30 @@
|
||||
"schema": {
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "http://localhost:1234/draft2020-12/strict-extendible-allof-ref-first.json",
|
||||
"$defs": {
|
||||
"remote_extendible": {
|
||||
"description": "extendible array",
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "http://localhost:1234/draft2020-12/extendible-dynamic-ref.json",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"elements": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$dynamicRef": "#elements"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"elements"
|
||||
],
|
||||
"$defs": {
|
||||
"elements": {
|
||||
"$dynamicAnchor": "elements"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"$defs": {
|
||||
@ -798,7 +884,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "extendible-dynamic-ref.json"
|
||||
"$ref": "#/$defs/remote_extendible"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -837,7 +923,22 @@
|
||||
{
|
||||
"description": "$ref to $dynamicRef finds detached $dynamicAnchor",
|
||||
"schema": {
|
||||
"$ref": "http://localhost:1234/draft2020-12/detached-dynamicref.json#/$defs/foo"
|
||||
"$ref": "http://localhost:1234/draft2020-12/detached-dynamicref.json#/$defs/foo",
|
||||
"$defs": {
|
||||
"remote_detached": {
|
||||
"$id": "http://localhost:1234/draft2020-12/detached-dynamicref.json",
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$defs": {
|
||||
"foo": {
|
||||
"$dynamicRef": "#detached"
|
||||
},
|
||||
"detached": {
|
||||
"$dynamicAnchor": "detached",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user