Bug: implementation doesn’t pass new dynamicRef test suites
OptimumCode opened this issue · comments
Oleg Smirnov commented
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Test suite $dynamicRef skips over intermediate resources - direct reference
is marked as failed
Expected Behavior
Test suite $dynamicRef skips over intermediate resources - direct reference
must be successful
JSON schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://test.json-schema.org/dynamic-ref-skips-intermediate-resource/main",
"type": "object",
"properties": {
"bar-item": {
"$ref": "item"
}
},
"$defs": {
"bar": {
"$id": "bar",
"type": "array",
"items": {
"$ref": "item"
},
"$defs": {
"item": {
"$id": "item",
"type": "object",
"properties": {
"content": {
"$dynamicRef": "#content"
}
},
"$defs": {
"defaultContent": {
"$dynamicAnchor": "content",
"type": "integer"
}
}
},
"content": {
"$dynamicAnchor": "content",
"type": "string"
}
}
}
}
}
Library version
0.0.12