|
454 | 454 | } |
455 | 455 | } |
456 | 456 | }, |
457 | | - "required": ["id", "type", "label", "items"] |
| 457 | + "required": ["id", "type", "label"] |
458 | 458 | } |
459 | 459 | ] |
460 | 460 | }, |
|
532 | 532 | } |
533 | 533 | } |
534 | 534 | }, |
535 | | - "required": ["id", "type", "label", "items"] |
| 535 | + "required": ["id", "type", "label"] |
536 | 536 | } |
537 | 537 | ] |
538 | 538 | }, |
|
618 | 618 | } |
619 | 619 | ] |
620 | 620 | }, |
| 621 | + "annotationCollectionRef": { |
| 622 | + "oneOf": [ |
| 623 | + { |
| 624 | + "type": "string" |
| 625 | + }, |
| 626 | + { |
| 627 | + "allOf": [ |
| 628 | + { "$ref": "#/types/reference" }, |
| 629 | + { |
| 630 | + "type": "object", |
| 631 | + "properties": { |
| 632 | + "type": { |
| 633 | + "type": "string", |
| 634 | + "pattern": "^AnnotationCollection$" |
| 635 | + } |
| 636 | + } |
| 637 | + } |
| 638 | + ] |
| 639 | + } |
| 640 | + ] |
| 641 | + }, |
621 | 642 | "canvas": { |
622 | 643 | "allOf": [ |
623 | 644 | { "$ref": "#/types/class" }, |
|
884 | 905 | "partOf": { |
885 | 906 | "type": "array", |
886 | 907 | "items": { |
887 | | - "$ref": "#/classes/annotationCollection" |
| 908 | + "oneOf": [ |
| 909 | + { "$ref": "#/classes/annotationCollection" }, |
| 910 | + { "$ref": "#/classes/annotationCollectionRef" } |
| 911 | + ] |
888 | 912 | } |
889 | 913 | }, |
890 | 914 | "next": { "$ref": "#/classes/annotationPageRef" }, |
891 | 915 | "prev": { "$ref": "#/classes/annotationPageRef" }, |
892 | 916 | "first": { "$ref": "#/classes/annotationPageRef" }, |
893 | 917 | "last": { "$ref": "#/classes/annotationPageRef" } |
894 | 918 | }, |
895 | | - "required": ["id", "type", "items"], |
| 919 | + "required": ["id","type","items"], |
896 | 920 | "additionalProperties": false |
897 | | - } |
| 921 | + } |
898 | 922 | ] |
899 | 923 | }, |
900 | 924 | "annotation": { |
|
981 | 1005 | { |
982 | 1006 | "$ref": "#/classes/specificResource" |
983 | 1007 | } |
984 | | - ] |
| 1008 | + ] |
985 | 1009 | }, |
986 | 1010 | "specificResource": { |
987 | 1011 | "type": "object", |
|
1100 | 1124 | "default": "Range" |
1101 | 1125 | }, |
1102 | 1126 | "rendering": { "$ref": "#/types/external" }, |
1103 | | - "supplementary": { "$ref": "#/classes/annotationCollection" }, |
| 1127 | + "supplementary": { |
| 1128 | + "oneOf": [ |
| 1129 | + { "$ref": "#/classes/annotationCollection" }, |
| 1130 | + { "$ref": "#/classes/annotationCollectionRef" } |
| 1131 | + ] |
| 1132 | + }, |
1104 | 1133 | "service": { "$ref": "#/classes/service" }, |
1105 | 1134 | "placeholderCanvas": { "$ref": "#/classes/placeholderCanvas" }, |
1106 | 1135 | "accompanyingCanvas": { "$ref": "#/classes/accompanyingCanvas" }, |
|
0 commit comments