|
444 | 444 | "description": "order of evaluation: $id and $ref",
|
445 | 445 | "schema": {
|
446 | 446 | "$comment": "$id must be evaluated before $ref to get the proper $ref destination",
|
447 |
| - "$id": "/base/base.json", |
| 447 | + "$id": "/ref-and-id1/base.json", |
448 | 448 | "$ref": "int.json",
|
449 | 449 | "$defs": {
|
450 | 450 | "bigint": {
|
451 |
| - "$comment": "canonical uri: /base/int.json", |
| 451 | + "$comment": "canonical uri: /ref-and-id1/int.json", |
452 | 452 | "$id": "int.json",
|
453 | 453 | "maximum": 10
|
454 | 454 | },
|
455 | 455 | "smallint": {
|
456 |
| - "$comment": "canonical uri: /int.json", |
457 |
| - "$id": "/int.json", |
| 456 | + "$comment": "canonical uri: /ref-and-id1-int.json", |
| 457 | + "$id": "/ref-and-id1-int.json", |
458 | 458 | "maximum": 2
|
459 | 459 | }
|
460 | 460 | }
|
|
473 | 473 | ]
|
474 | 474 | },
|
475 | 475 | {
|
476 |
| - "description": "order of evaluation: plain-name $id and $ref", |
| 476 | + "description": "order of evaluation: $id and $anchor and $ref", |
477 | 477 | "schema": {
|
478 | 478 | "$comment": "$id must be evaluated before $ref to get the proper $ref destination",
|
479 |
| - "$id": "/base.json", |
| 479 | + "$id": "/ref-and-id2/base.json", |
480 | 480 | "$ref": "#bigint",
|
481 | 481 | "$defs": {
|
482 | 482 | "bigint": {
|
483 |
| - "$comment": "canonical uri: /base.json#/$defs/bigint; another valid uri for this location: /base.json#bigint", |
| 483 | + "$comment": "canonical uri: /ref-and-id2/base.json/$defs/bigint; another valid uri for this location: /ref-and-id2/base.json#bigint", |
484 | 484 | "$id": "#bigint",
|
485 | 485 | "maximum": 10
|
486 | 486 | },
|
487 | 487 | "smallint": {
|
488 |
| - "$comment": "canonical uri: /#/$defs/smallint; another valid uri for this location: /#bigint", |
| 488 | + "$comment": "canonical uri: /ref-and-id2#/$defs/smallint; another valid uri for this location: /ref-and-id2/#bigint", |
489 | 489 | "$id": "/#bigint",
|
490 | 490 | "maximum": 2
|
491 | 491 | }
|
|
0 commit comments