Skip to content

Commit d6490e8

Browse files
committed
move anchors into defs
1 parent 4e5649c commit d6490e8

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

tests/draft-next/dynamicRef.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -504,15 +504,23 @@
504504
"expectedTypes": {
505505
"strings": {
506506
"$id": "east",
507-
"$dynamicAnchor": "foo",
508-
"type": "string",
509-
"$ref": "inner"
507+
"$ref": "inner",
508+
"$defs": {
509+
"foo": {
510+
"$dynamicAnchor": "foo",
511+
"type": "string"
512+
}
513+
}
510514
},
511515
"integers": {
512516
"$id": "west",
513-
"$dynamicAnchor": "foo",
514-
"type": "integer",
515-
"$ref": "inner"
517+
"$ref": "inner",
518+
"$defs": {
519+
"foo": {
520+
"$dynamicAnchor": "foo",
521+
"type": "integer"
522+
}
523+
}
516524
}
517525
}
518526
}

0 commit comments

Comments
 (0)