|
649 | 649 | "description": "order of evaluation: $id and $ref",
|
650 | 650 | "schema": {
|
651 | 651 | "$comment": "$id must be evaluated before $ref to get the proper $ref destination",
|
652 |
| - "$id": "/base/base.json", |
| 652 | + "$id": "/ref-and-id1/base.json", |
653 | 653 | "$ref": "int.json",
|
654 | 654 | "$defs": {
|
655 | 655 | "bigint": {
|
656 |
| - "$comment": "canonical uri: /base/int.json", |
| 656 | + "$comment": "canonical uri: /ref-and-id1/int.json", |
657 | 657 | "$id": "int.json",
|
658 | 658 | "maximum": 10
|
659 | 659 | },
|
660 | 660 | "smallint": {
|
661 |
| - "$comment": "canonical uri: /int.json", |
662 |
| - "$id": "/int.json", |
| 661 | + "$comment": "canonical uri: /ref-and-id1-int.json", |
| 662 | + "$id": "/ref-and-id1-int.json", |
663 | 663 | "maximum": 2
|
664 | 664 | }
|
665 | 665 | }
|
|
678 | 678 | ]
|
679 | 679 | },
|
680 | 680 | {
|
681 |
| - "description": "order of evaluation: plain-name $id and $ref", |
| 681 | + "description": "order of evaluation: $id and $anchor and $ref", |
682 | 682 | "schema": {
|
683 | 683 | "$comment": "$id must be evaluated before $ref to get the proper $ref destination",
|
684 |
| - "$id": "/base.json", |
| 684 | + "$id": "/ref-and-id2/base.json", |
685 | 685 | "$ref": "#bigint",
|
686 | 686 | "$defs": {
|
687 | 687 | "bigint": {
|
688 |
| - "$comment": "canonical uri: /base.json#/$defs/bigint; another valid uri for this location: /base.json#bigint", |
| 688 | + "$comment": "canonical uri: /ref-and-id2/base.json/$defs/bigint; another valid uri for this location: /ref-and-id2/base.json#bigint", |
689 | 689 | "$id": "#bigint",
|
690 | 690 | "maximum": 10
|
691 | 691 | },
|
692 | 692 | "smallint": {
|
693 |
| - "$comment": "canonical uri: /#/$defs/smallint; another valid uri for this location: /#bigint", |
| 693 | + "$comment": "canonical uri: /ref-and-id2#/$defs/smallint; another valid uri for this location: /ref-and-id2/#bigint", |
694 | 694 | "$id": "/#bigint",
|
695 | 695 | "maximum": 2
|
696 | 696 | }
|
|
0 commit comments