@dmptool/types 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/answers/__tests__/answers.spec.js +27 -14
  2. package/dist/answers/__tests__/defaults.spec.js +2 -0
  3. package/dist/answers/index.d.ts +102 -0
  4. package/dist/answers/index.js +1 -0
  5. package/dist/answers/tableAnswers.d.ts +614 -136
  6. package/dist/answers/tableAnswers.js +43 -20
  7. package/dist/dmp/__tests__/commonStandard.spec.js +26 -22
  8. package/dist/dmp/__tests__/extensions.spec.js +21 -15
  9. package/dist/dmp/extension.d.ts +385 -92
  10. package/dist/dmp/extension.js +49 -103
  11. package/dist/dmp/index.d.ts +515 -2
  12. package/dist/dmp/index.js +11 -1
  13. package/dist/questions/__tests__/defaults.spec.js +20 -10
  14. package/dist/questions/__tests__/optionBasedQuestions.spec.js +17 -12
  15. package/dist/questions/__tests__/tableQuestion.spec.js +5 -0
  16. package/dist/questions/index.d.ts +20 -7
  17. package/dist/questions/optionBasedQuestions.d.ts +8 -6
  18. package/dist/questions/optionBasedQuestions.js +21 -8
  19. package/dist/questions/tableQuestions.d.ts +54 -16
  20. package/dist/questions/tableQuestions.js +56 -19
  21. package/dist/schemas/anyAnswer.schema.json +514 -0
  22. package/dist/schemas/anyQuestion.schema.json +60 -35
  23. package/dist/schemas/anyTableColumnQuestion.schema.json +9 -10
  24. package/dist/schemas/checkboxesQuestion.schema.json +3 -0
  25. package/dist/schemas/dmpExtension.schema.json +636 -140
  26. package/dist/schemas/multiselectBoxQuestion.schema.json +3 -5
  27. package/dist/schemas/radioButtonsQuestion.schema.json +3 -5
  28. package/dist/schemas/researchOutputTableAnswer.schema.json +6047 -11983
  29. package/dist/schemas/selectBoxQuestion.schema.json +3 -5
  30. package/dist/schemas/tableQuestion.schema.json +9 -10
  31. package/package.json +1 -1
  32. package/schemas/anyAnswer.schema.json +514 -0
  33. package/schemas/anyQuestion.schema.json +60 -35
  34. package/schemas/anyTableColumnQuestion.schema.json +9 -10
  35. package/schemas/checkboxesQuestion.schema.json +3 -0
  36. package/schemas/dmpExtension.schema.json +636 -140
  37. package/schemas/multiselectBoxQuestion.schema.json +3 -5
  38. package/schemas/radioButtonsQuestion.schema.json +3 -5
  39. package/schemas/researchOutputTableAnswer.schema.json +6047 -11983
  40. package/schemas/selectBoxQuestion.schema.json +3 -5
  41. package/schemas/tableQuestion.schema.json +9 -10
@@ -2,9 +2,22 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "type": "object",
4
4
  "properties": {
5
+ "rda_schema_version": {
6
+ "default": "1.2",
7
+ "type": "string"
8
+ },
5
9
  "provenance": {
6
10
  "type": "string"
7
11
  },
12
+ "status": {
13
+ "default": "draft",
14
+ "type": "string",
15
+ "enum": [
16
+ "archived",
17
+ "draft",
18
+ "complete"
19
+ ]
20
+ },
8
21
  "privacy": {
9
22
  "default": "private",
10
23
  "type": "string",
@@ -27,26 +40,16 @@
27
40
  "format": "date-time",
28
41
  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
29
42
  },
43
+ "tombstoned": {
44
+ "type": "string",
45
+ "format": "date-time",
46
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
47
+ },
30
48
  "narrative": {
31
49
  "type": "object",
32
50
  "properties": {
33
- "download_urls": {
34
- "type": "object",
35
- "properties": {
36
- "csv": {
37
- "type": "string"
38
- },
39
- "docx": {
40
- "type": "string"
41
- },
42
- "html": {
43
- "type": "string"
44
- },
45
- "pdf": {
46
- "type": "string"
47
- }
48
- },
49
- "additionalProperties": false
51
+ "download_url": {
52
+ "type": "string"
50
53
  },
51
54
  "template": {
52
55
  "type": "object",
@@ -684,8 +687,521 @@
684
687
  }
685
688
  },
686
689
  "required": [
687
- "repositoryId",
688
- "repositoryName"
690
+ "repositoryId",
691
+ "repositoryName"
692
+ ],
693
+ "additionalProperties": false
694
+ }
695
+ }
696
+ },
697
+ "required": [
698
+ "type",
699
+ "meta",
700
+ "answer"
701
+ ],
702
+ "additionalProperties": false
703
+ },
704
+ {
705
+ "type": "object",
706
+ "properties": {
707
+ "type": {
708
+ "type": "string",
709
+ "const": "researchOutputTable"
710
+ },
711
+ "meta": {
712
+ "type": "object",
713
+ "properties": {
714
+ "schemaVersion": {
715
+ "default": "1.0",
716
+ "type": "string"
717
+ }
718
+ },
719
+ "required": [
720
+ "schemaVersion"
721
+ ],
722
+ "additionalProperties": false
723
+ },
724
+ "comment": {
725
+ "type": "string"
726
+ },
727
+ "columnHeadings": {
728
+ "default": [
729
+ "Title",
730
+ "Type"
731
+ ],
732
+ "type": "array",
733
+ "items": {
734
+ "type": "string"
735
+ }
736
+ },
737
+ "answer": {
738
+ "type": "array",
739
+ "items": {
740
+ "type": "object",
741
+ "properties": {
742
+ "columns": {
743
+ "type": "array",
744
+ "items": {
745
+ "oneOf": [
746
+ {
747
+ "type": "object",
748
+ "properties": {
749
+ "type": {
750
+ "type": "string",
751
+ "const": "checkBoxes"
752
+ },
753
+ "meta": {
754
+ "type": "object",
755
+ "properties": {
756
+ "schemaVersion": {
757
+ "default": "1.0",
758
+ "type": "string"
759
+ }
760
+ },
761
+ "required": [
762
+ "schemaVersion"
763
+ ],
764
+ "additionalProperties": false
765
+ },
766
+ "comment": {
767
+ "type": "string"
768
+ },
769
+ "answer": {
770
+ "default": [
771
+ ""
772
+ ],
773
+ "type": "array",
774
+ "items": {
775
+ "type": "string"
776
+ }
777
+ },
778
+ "commonStandardId": {
779
+ "type": "string"
780
+ }
781
+ },
782
+ "required": [
783
+ "type",
784
+ "meta",
785
+ "answer"
786
+ ],
787
+ "additionalProperties": false
788
+ },
789
+ {
790
+ "type": "object",
791
+ "properties": {
792
+ "type": {
793
+ "type": "string",
794
+ "const": "date"
795
+ },
796
+ "meta": {
797
+ "type": "object",
798
+ "properties": {
799
+ "schemaVersion": {
800
+ "default": "1.0",
801
+ "type": "string"
802
+ }
803
+ },
804
+ "required": [
805
+ "schemaVersion"
806
+ ],
807
+ "additionalProperties": false
808
+ },
809
+ "comment": {
810
+ "type": "string"
811
+ },
812
+ "answer": {
813
+ "default": "",
814
+ "type": "string"
815
+ },
816
+ "commonStandardId": {
817
+ "type": "string"
818
+ }
819
+ },
820
+ "required": [
821
+ "type",
822
+ "meta",
823
+ "answer"
824
+ ],
825
+ "additionalProperties": false
826
+ },
827
+ {
828
+ "type": "object",
829
+ "properties": {
830
+ "type": {
831
+ "type": "string",
832
+ "const": "licenseSearch"
833
+ },
834
+ "meta": {
835
+ "type": "object",
836
+ "properties": {
837
+ "schemaVersion": {
838
+ "default": "1.0",
839
+ "type": "string"
840
+ }
841
+ },
842
+ "required": [
843
+ "schemaVersion"
844
+ ],
845
+ "additionalProperties": false
846
+ },
847
+ "comment": {
848
+ "type": "string"
849
+ },
850
+ "answer": {
851
+ "default": [],
852
+ "type": "array",
853
+ "items": {
854
+ "type": "object",
855
+ "properties": {
856
+ "licenseId": {
857
+ "default": "",
858
+ "type": "string"
859
+ },
860
+ "licenseName": {
861
+ "default": "",
862
+ "type": "string"
863
+ }
864
+ },
865
+ "required": [
866
+ "licenseId",
867
+ "licenseName"
868
+ ],
869
+ "additionalProperties": false
870
+ }
871
+ },
872
+ "commonStandardId": {
873
+ "type": "string"
874
+ }
875
+ },
876
+ "required": [
877
+ "type",
878
+ "meta",
879
+ "answer"
880
+ ],
881
+ "additionalProperties": false
882
+ },
883
+ {
884
+ "type": "object",
885
+ "properties": {
886
+ "type": {
887
+ "type": "string",
888
+ "const": "metadataStandardSearch"
889
+ },
890
+ "meta": {
891
+ "type": "object",
892
+ "properties": {
893
+ "schemaVersion": {
894
+ "default": "1.0",
895
+ "type": "string"
896
+ }
897
+ },
898
+ "required": [
899
+ "schemaVersion"
900
+ ],
901
+ "additionalProperties": false
902
+ },
903
+ "comment": {
904
+ "type": "string"
905
+ },
906
+ "answer": {
907
+ "default": [],
908
+ "type": "array",
909
+ "items": {
910
+ "type": "object",
911
+ "properties": {
912
+ "metadataStandardId": {
913
+ "default": "",
914
+ "type": "string"
915
+ },
916
+ "metadataStandardName": {
917
+ "default": "",
918
+ "type": "string"
919
+ }
920
+ },
921
+ "required": [
922
+ "metadataStandardId",
923
+ "metadataStandardName"
924
+ ],
925
+ "additionalProperties": false
926
+ }
927
+ },
928
+ "commonStandardId": {
929
+ "type": "string"
930
+ }
931
+ },
932
+ "required": [
933
+ "type",
934
+ "meta",
935
+ "answer"
936
+ ],
937
+ "additionalProperties": false
938
+ },
939
+ {
940
+ "type": "object",
941
+ "properties": {
942
+ "type": {
943
+ "type": "string",
944
+ "const": "numberWithContext"
945
+ },
946
+ "meta": {
947
+ "type": "object",
948
+ "properties": {
949
+ "schemaVersion": {
950
+ "default": "1.0",
951
+ "type": "string"
952
+ }
953
+ },
954
+ "required": [
955
+ "schemaVersion"
956
+ ],
957
+ "additionalProperties": false
958
+ },
959
+ "comment": {
960
+ "type": "string"
961
+ },
962
+ "answer": {
963
+ "type": "object",
964
+ "properties": {
965
+ "value": {
966
+ "default": 0,
967
+ "type": "number"
968
+ },
969
+ "context": {
970
+ "default": "",
971
+ "type": "string"
972
+ }
973
+ },
974
+ "required": [
975
+ "value",
976
+ "context"
977
+ ],
978
+ "additionalProperties": false
979
+ },
980
+ "commonStandardId": {
981
+ "type": "string"
982
+ }
983
+ },
984
+ "required": [
985
+ "type",
986
+ "meta",
987
+ "answer"
988
+ ],
989
+ "additionalProperties": false
990
+ },
991
+ {
992
+ "type": "object",
993
+ "properties": {
994
+ "type": {
995
+ "type": "string",
996
+ "const": "radioButtons"
997
+ },
998
+ "meta": {
999
+ "type": "object",
1000
+ "properties": {
1001
+ "schemaVersion": {
1002
+ "default": "1.0",
1003
+ "type": "string"
1004
+ }
1005
+ },
1006
+ "required": [
1007
+ "schemaVersion"
1008
+ ],
1009
+ "additionalProperties": false
1010
+ },
1011
+ "comment": {
1012
+ "type": "string"
1013
+ },
1014
+ "answer": {
1015
+ "default": "",
1016
+ "type": "string"
1017
+ },
1018
+ "commonStandardId": {
1019
+ "type": "string"
1020
+ }
1021
+ },
1022
+ "required": [
1023
+ "type",
1024
+ "meta",
1025
+ "answer"
1026
+ ],
1027
+ "additionalProperties": false
1028
+ },
1029
+ {
1030
+ "type": "object",
1031
+ "properties": {
1032
+ "type": {
1033
+ "type": "string",
1034
+ "const": "repositorySearch"
1035
+ },
1036
+ "meta": {
1037
+ "type": "object",
1038
+ "properties": {
1039
+ "schemaVersion": {
1040
+ "default": "1.0",
1041
+ "type": "string"
1042
+ }
1043
+ },
1044
+ "required": [
1045
+ "schemaVersion"
1046
+ ],
1047
+ "additionalProperties": false
1048
+ },
1049
+ "comment": {
1050
+ "type": "string"
1051
+ },
1052
+ "answer": {
1053
+ "default": [],
1054
+ "type": "array",
1055
+ "items": {
1056
+ "type": "object",
1057
+ "properties": {
1058
+ "repositoryId": {
1059
+ "default": "",
1060
+ "type": "string"
1061
+ },
1062
+ "repositoryName": {
1063
+ "default": "",
1064
+ "type": "string"
1065
+ }
1066
+ },
1067
+ "required": [
1068
+ "repositoryId",
1069
+ "repositoryName"
1070
+ ],
1071
+ "additionalProperties": false
1072
+ }
1073
+ },
1074
+ "commonStandardId": {
1075
+ "type": "string"
1076
+ }
1077
+ },
1078
+ "required": [
1079
+ "type",
1080
+ "meta",
1081
+ "answer"
1082
+ ],
1083
+ "additionalProperties": false
1084
+ },
1085
+ {
1086
+ "type": "object",
1087
+ "properties": {
1088
+ "type": {
1089
+ "type": "string",
1090
+ "const": "selectBox"
1091
+ },
1092
+ "meta": {
1093
+ "type": "object",
1094
+ "properties": {
1095
+ "schemaVersion": {
1096
+ "default": "1.0",
1097
+ "type": "string"
1098
+ }
1099
+ },
1100
+ "required": [
1101
+ "schemaVersion"
1102
+ ],
1103
+ "additionalProperties": false
1104
+ },
1105
+ "comment": {
1106
+ "type": "string"
1107
+ },
1108
+ "answer": {
1109
+ "default": "",
1110
+ "type": "string"
1111
+ },
1112
+ "commonStandardId": {
1113
+ "type": "string"
1114
+ }
1115
+ },
1116
+ "required": [
1117
+ "type",
1118
+ "meta",
1119
+ "answer"
1120
+ ],
1121
+ "additionalProperties": false
1122
+ },
1123
+ {
1124
+ "type": "object",
1125
+ "properties": {
1126
+ "type": {
1127
+ "type": "string",
1128
+ "const": "text"
1129
+ },
1130
+ "meta": {
1131
+ "type": "object",
1132
+ "properties": {
1133
+ "schemaVersion": {
1134
+ "default": "1.0",
1135
+ "type": "string"
1136
+ }
1137
+ },
1138
+ "required": [
1139
+ "schemaVersion"
1140
+ ],
1141
+ "additionalProperties": false
1142
+ },
1143
+ "comment": {
1144
+ "type": "string"
1145
+ },
1146
+ "answer": {
1147
+ "default": "",
1148
+ "type": "string"
1149
+ },
1150
+ "commonStandardId": {
1151
+ "type": "string"
1152
+ }
1153
+ },
1154
+ "required": [
1155
+ "type",
1156
+ "meta",
1157
+ "answer"
1158
+ ],
1159
+ "additionalProperties": false
1160
+ },
1161
+ {
1162
+ "type": "object",
1163
+ "properties": {
1164
+ "type": {
1165
+ "type": "string",
1166
+ "const": "textArea"
1167
+ },
1168
+ "meta": {
1169
+ "type": "object",
1170
+ "properties": {
1171
+ "schemaVersion": {
1172
+ "default": "1.0",
1173
+ "type": "string"
1174
+ }
1175
+ },
1176
+ "required": [
1177
+ "schemaVersion"
1178
+ ],
1179
+ "additionalProperties": false
1180
+ },
1181
+ "comment": {
1182
+ "type": "string"
1183
+ },
1184
+ "answer": {
1185
+ "default": "",
1186
+ "type": "string"
1187
+ },
1188
+ "commonStandardId": {
1189
+ "type": "string"
1190
+ }
1191
+ },
1192
+ "required": [
1193
+ "type",
1194
+ "meta",
1195
+ "answer"
1196
+ ],
1197
+ "additionalProperties": false
1198
+ }
1199
+ ]
1200
+ }
1201
+ }
1202
+ },
1203
+ "required": [
1204
+ "columns"
689
1205
  ],
690
1206
  "additionalProperties": false
691
1207
  }
@@ -694,6 +1210,7 @@
694
1210
  "required": [
695
1211
  "type",
696
1212
  "meta",
1213
+ "columnHeadings",
697
1214
  "answer"
698
1215
  ],
699
1216
  "additionalProperties": false
@@ -1686,138 +2203,29 @@
1686
2203
  "type": "string"
1687
2204
  },
1688
2205
  "type": {
1689
- "default": "url",
1690
2206
  "type": "string",
1691
2207
  "enum": [
1692
2208
  "ark",
1693
2209
  "doi",
1694
2210
  "handle",
2211
+ "ror",
1695
2212
  "url",
1696
2213
  "other"
1697
2214
  ]
1698
2215
  }
1699
2216
  },
1700
2217
  "required": [
2218
+ "identifier",
1701
2219
  "type"
1702
2220
  ],
1703
2221
  "additionalProperties": false
1704
2222
  }
1705
2223
  },
1706
2224
  "required": [
1707
- "name",
1708
- "research_domain_identifier"
2225
+ "name"
1709
2226
  ],
1710
2227
  "additionalProperties": false
1711
2228
  },
1712
- "related_identifier": {
1713
- "type": "array",
1714
- "items": {
1715
- "type": "object",
1716
- "properties": {
1717
- "descriptor": {
1718
- "default": "cites",
1719
- "type": "string",
1720
- "enum": [
1721
- "is_cited_by",
1722
- "cites",
1723
- "is_supplement_to",
1724
- "is_supplemented_by",
1725
- "is_continued_by",
1726
- "continues",
1727
- "is_described_by",
1728
- "describes",
1729
- "has_metadata",
1730
- "is_metadata_for",
1731
- "has_version",
1732
- "is_version_of",
1733
- "is_new_version_of",
1734
- "is_previous_version_of",
1735
- "is_part_of",
1736
- "has_part",
1737
- "is_published_in",
1738
- "is_referenced_by",
1739
- "references",
1740
- "is_documented_by",
1741
- "documents",
1742
- "is_compiled_by",
1743
- "compiles",
1744
- "is_variant_form_of",
1745
- "is_original_form_of",
1746
- "is_identical_to",
1747
- "is_reviewed_by",
1748
- "reviews",
1749
- "is_derived_from",
1750
- "is_source_of",
1751
- "is_required_by",
1752
- "requires",
1753
- "obsoletes",
1754
- "is_obsoleted_by",
1755
- "is_collected_by",
1756
- "collects",
1757
- "is_translation_of",
1758
- "has_translation"
1759
- ]
1760
- },
1761
- "identifier": {
1762
- "type": "string"
1763
- },
1764
- "type": {
1765
- "default": "url",
1766
- "type": "string",
1767
- "enum": [
1768
- "ark",
1769
- "doi",
1770
- "handle",
1771
- "url"
1772
- ]
1773
- },
1774
- "work_type": {
1775
- "default": "dataset",
1776
- "type": "string",
1777
- "enum": [
1778
- "audiovisual",
1779
- "book",
1780
- "book_chapter",
1781
- "collection",
1782
- "computational_notebook",
1783
- "conference_paper",
1784
- "conference_proceeding",
1785
- "data_paper",
1786
- "dataset",
1787
- "dissertation",
1788
- "event",
1789
- "image",
1790
- "instrument",
1791
- "interactive_resource",
1792
- "journal",
1793
- "journal_article",
1794
- "model",
1795
- "output_management_plan",
1796
- "peer_review",
1797
- "physical_object",
1798
- "preprint",
1799
- "project",
1800
- "report",
1801
- "service",
1802
- "software",
1803
- "sound",
1804
- "standard",
1805
- "study_registration",
1806
- "text",
1807
- "workflow",
1808
- "other"
1809
- ]
1810
- }
1811
- },
1812
- "required": [
1813
- "descriptor",
1814
- "identifier",
1815
- "type",
1816
- "work_type"
1817
- ],
1818
- "additionalProperties": false
1819
- }
1820
- },
1821
2229
  "research_facility": {
1822
2230
  "type": "array",
1823
2231
  "items": {
@@ -1827,7 +2235,6 @@
1827
2235
  "type": "string"
1828
2236
  },
1829
2237
  "type": {
1830
- "default": "other",
1831
2238
  "type": "string",
1832
2239
  "enum": [
1833
2240
  "data_center",
@@ -1844,12 +2251,12 @@
1844
2251
  "type": "string"
1845
2252
  },
1846
2253
  "type": {
1847
- "default": "url",
1848
2254
  "type": "string",
1849
2255
  "enum": [
1850
2256
  "ark",
1851
2257
  "doi",
1852
2258
  "handle",
2259
+ "ror",
1853
2260
  "url",
1854
2261
  "other"
1855
2262
  ]
@@ -1864,8 +2271,7 @@
1864
2271
  },
1865
2272
  "required": [
1866
2273
  "name",
1867
- "type",
1868
- "research_facility_identifier"
2274
+ "type"
1869
2275
  ],
1870
2276
  "additionalProperties": false
1871
2277
  }
@@ -1878,7 +2284,7 @@
1878
2284
  "access_url": {
1879
2285
  "type": "string"
1880
2286
  },
1881
- "version_date": {
2287
+ "version": {
1882
2288
  "type": "string",
1883
2289
  "format": "date-time",
1884
2290
  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
@@ -1886,7 +2292,7 @@
1886
2292
  },
1887
2293
  "required": [
1888
2294
  "access_url",
1889
- "version_date"
2295
+ "version"
1890
2296
  ],
1891
2297
  "additionalProperties": false
1892
2298
  }
@@ -1903,12 +2309,12 @@
1903
2309
  "type": "string"
1904
2310
  },
1905
2311
  "type": {
1906
- "default": "other",
1907
2312
  "type": "string",
1908
2313
  "enum": [
1909
2314
  "ark",
1910
2315
  "doi",
1911
2316
  "handle",
2317
+ "ror",
1912
2318
  "url",
1913
2319
  "other"
1914
2320
  ]
@@ -1927,9 +2333,11 @@
1927
2333
  "type": "string"
1928
2334
  },
1929
2335
  "type": {
1930
- "default": "ror",
1931
2336
  "type": "string",
1932
2337
  "enum": [
2338
+ "ark",
2339
+ "doi",
2340
+ "handle",
1933
2341
  "ror",
1934
2342
  "url",
1935
2343
  "other"
@@ -1949,12 +2357,12 @@
1949
2357
  "type": "string"
1950
2358
  },
1951
2359
  "type": {
1952
- "default": "url",
1953
2360
  "type": "string",
1954
2361
  "enum": [
1955
2362
  "ark",
1956
2363
  "doi",
1957
2364
  "handle",
2365
+ "ror",
1958
2366
  "url",
1959
2367
  "other"
1960
2368
  ]
@@ -1974,10 +2382,98 @@
1974
2382
  ],
1975
2383
  "additionalProperties": false
1976
2384
  }
2385
+ },
2386
+ "funding_project": {
2387
+ "type": "array",
2388
+ "items": {
2389
+ "type": "object",
2390
+ "properties": {
2391
+ "project_id": {
2392
+ "type": "object",
2393
+ "properties": {
2394
+ "identifier": {
2395
+ "type": "string"
2396
+ },
2397
+ "type": {
2398
+ "type": "string",
2399
+ "enum": [
2400
+ "ark",
2401
+ "doi",
2402
+ "handle",
2403
+ "ror",
2404
+ "url",
2405
+ "other"
2406
+ ]
2407
+ }
2408
+ },
2409
+ "required": [
2410
+ "identifier",
2411
+ "type"
2412
+ ],
2413
+ "additionalProperties": false
2414
+ },
2415
+ "funder_id": {
2416
+ "type": "object",
2417
+ "properties": {
2418
+ "identifier": {
2419
+ "type": "string"
2420
+ },
2421
+ "type": {
2422
+ "type": "string",
2423
+ "enum": [
2424
+ "ark",
2425
+ "doi",
2426
+ "handle",
2427
+ "ror",
2428
+ "url",
2429
+ "other"
2430
+ ]
2431
+ }
2432
+ },
2433
+ "required": [
2434
+ "identifier",
2435
+ "type"
2436
+ ],
2437
+ "additionalProperties": false
2438
+ },
2439
+ "project_identifier": {
2440
+ "type": "object",
2441
+ "properties": {
2442
+ "identifier": {
2443
+ "type": "string"
2444
+ },
2445
+ "type": {
2446
+ "type": "string",
2447
+ "enum": [
2448
+ "ark",
2449
+ "doi",
2450
+ "handle",
2451
+ "ror",
2452
+ "url",
2453
+ "other"
2454
+ ]
2455
+ }
2456
+ },
2457
+ "required": [
2458
+ "identifier",
2459
+ "type"
2460
+ ],
2461
+ "additionalProperties": false
2462
+ }
2463
+ },
2464
+ "required": [
2465
+ "project_id",
2466
+ "funder_id",
2467
+ "project_identifier"
2468
+ ],
2469
+ "additionalProperties": false
2470
+ }
1977
2471
  }
1978
2472
  },
1979
2473
  "required": [
2474
+ "rda_schema_version",
1980
2475
  "provenance",
2476
+ "status",
1981
2477
  "privacy",
1982
2478
  "featured"
1983
2479
  ],