-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathopenapi.yaml
More file actions
2531 lines (2507 loc) · 70.2 KB
/
openapi.yaml
File metadata and controls
2531 lines (2507 loc) · 70.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.1.4
info:
title: Common Machine-Actionable DMP API
description: |
This API provides access to Data Management Plans in a machine-readable format. You can use this API to perform
automated analysis or other integration. Please note that this API may not give you all information stored in the
system implementing it as this standard is intended as a common baseline among multiple DMP platform vendors.
# Schema extension
This API supports extending the standard by using content negotiation. The MIME types used for content negotiation
*should* follow the vendor tree naming defined in
[RFC 6838 Section 3.2](https://datatracker.ietf.org/doc/html/rfc6838#section-3.2) and make use of the media type
suffixes defined in [RFC6839](https://www.rfc-editor.org/rfc/rfc6839). The vendor prefix should be chosen such that
the vendor is clearly identifiable. For example:
```
application/vnd.com.example.dmp+json
```
Clients *should* send an `Accept` header with their preferred MIME types. The server *must* order the contents of
the `Accept` header correctly and select the standard with the highest client preference.
(See the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept) for a detailed
explanation on this header.)
If the client sends no `Accept` header or sends an unqualified `application/json` request, the server *may* select
the "stock" schema represented in this document or may select an extended schema only if the extended schema fully
adheres to this standard with only extra added fields, but no existing fields removed or modified. In this case, the
server *must* respond with the `application/json` content type. Clients *should* not rely on receiving an extended
schema document when sending an `application/json` request and *should* prefer sending a qualified MIME type.
The correct MIME-type for the DMP standard used in this specification is:
```
application/vnd.org.rd-alliance.dmp-common.v1.2+json
```
Client and server implementations *may* agree on a different serialization to JSON, such as XML, by specifying the
corresponding suffix. Clients and servers *must* support JSON serialization.
# Conflict resolution
This API makes use of the `Last-Modified` headers in order to resolve conflicts. When updating a DMP, consider
passing the `Last-Modified` header from the response in the `If-Unmodified-Since` header in the PUT request. If the
DMP has been modified since you last fetched the data, the server will return a 409 header.
Server implementations should always update the modified field of the DMP to the server time on PUT and return it
in the `Last-Modified` header. On PUT, server implementations should compare the `If-Unmodified-Since` header with
the stored modified field.
version: 0.1.0
license:
name: Creative Commons Zero v1.0 Universal
identifier: "CC0-1.0"
externalDocs:
description: RDA DMP Common Standards WG
url: https://github.com/RDA-DMP-Common
tags:
- name: DMP
description: DMP-related endpoints
security:
- BearerAuth: []
paths:
/dmps:
get:
summary: List/search DMPs
description: |
This endpoint lists all DMPs or allows for creating a filtered list. When filters are provided,
all filter are applied (AND relationship). For filters supporting lists, the individual values are applied
as an OR relationship.
For items accepting more than one value you may pass multiple values by repeating the parameter in the
query string for each item.
operationId: listDMPs
tags:
- DMP
parameters:
- name: offset
in: query
required: false
description: Number of items to skip from the start.
schema:
title: Offset
type: integer
minimum: 0
default: 0
- name: count
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 20
description: Number of items to fetch.
- name: sort[]
description: |
A list of fields to sort by with the sort order.
in: query
required: false
schema:
type: array
default: ["created,desc"]
items:
type: string
default: created,desc
enum:
- title,asc
- title,desc
- created,asc
- created,desc
- modified,asc
- modified,desc
- language,asc
- language,desc
- embargo,asc
- embargo,desc
- keyword,asc
- keyword,desc
- name: created_before
in: query
required: false
schema:
type: string
format: date-time
- name: created_after
in: query
required: false
schema:
type: string
format: date-time
- name: modified_before
in: query
required: false
schema:
type: string
format: date-time
- name: modified_after
in: query
required: false
schema:
type: string
format: date-time
- name: languages[]
in: query
required: false
schema:
type: array
items:
$ref: "#/components/schemas/LanguageCode"
- name: contact_ids[]
in: query
required: false
schema:
type: array
items:
$ref: "#/components/schemas/ContactID"
- name: contributor_ids[]
in: query
required: false
schema:
type: array
items:
$ref: "#/components/schemas/ContributorID"
- name: dataset_ids[]
in: query
required: false
schema:
type: array
items:
$ref: "#/components/schemas/DatasetID"
- name: metadata_standard_ids[]
in: query
required: false
schema:
type: array
items:
$ref: "#/components/schemas/MetadataStandardID"
- name: dmp_ids[]
in: query
required: false
schema:
type: array
items:
$ref: "#/components/schemas/DMPID"
- name: funder_ids[]
in: query
required: false
schema:
type: array
items:
$ref: "#/components/schemas/FunderID"
- name: grant_ids[]
in: query
required: false
schema:
type: array
items:
$ref: "#/components/schemas/GrantID"
- name: query
in: query
required: false
schema:
type: string
- name: ethical_issues_exist
in: query
required: false
schema:
type: boolean
- name: embargo_before
in: query
required: false
schema:
type: string
format: date
- name: embargo_after
in: query
required: false
schema:
type: string
format: date
responses:
200:
$ref: "#/components/responses/DMPListResponse"
400:
$ref: "#/components/responses/BadRequestResponse"
401:
$ref: "#/components/responses/AuthenticationRequiredResponse"
406:
$ref: "#/components/responses/NotAcceptableResponse"
default:
$ref: "#/components/responses/GenericErrorResponse"
post:
summary: Create a DMP
description: |
Create or import a DMP from a JSON-formed DMP object. The implementation may opt to allow the creation of
draft DMPs with formally valid, but incomplete fields. Alternatively, the implementation may reject incomplete
DMPs if it cannot store them.
operationId: createDMP
tags:
- DMP
requestBody:
required: true
content:
application/vnd.org.rd-alliance.dmp-common.v1.2+json:
schema:
$ref: "#/components/schemas/DMPDocument"
application/json:
schema:
$ref: "#/components/schemas/DMPDocument"
responses:
200:
description: DMP successfully created
headers:
Last-Modified:
description: |
The server should expose the time the DMP was last modified to allow for a conditional PUT request.
This is especially important if the server does not support PATCH requests.
schema:
type: string
format: date-time
content:
application/vnd.org.rd-alliance.dmp-common.v1.2+json:
schema:
$ref: "#/components/schemas/DMPWithID"
application/json:
schema:
$ref: "#/components/schemas/DMPWithID"
400:
$ref: "#/components/responses/BadRequestResponse"
401:
$ref: "#/components/responses/AuthenticationRequiredResponse"
403:
$ref: "#/components/responses/InsufficientPermissionsResponse"
406:
$ref: "#/components/responses/NotAcceptableResponse"
409:
$ref: "#/components/responses/ConflictResponse"
default:
$ref: "#/components/responses/GenericErrorResponse"
/dmps/{id}:
get:
summary: Get a DMP
description: |
Fetch a DMP based on its ID.
operationId: getDMP
tags:
- DMP
parameters:
- name: id
in: path
required: true
schema:
$ref: "#/components/schemas/DMPSystemID"
responses:
200:
description: DMP retrieved
headers:
Last-Modified:
description: |
The server should expose the time the DMP was last modified to allow for a conditional PUT request.
schema:
type: string
format: date-time
content:
application/vnd.org.rd-alliance.dmp-common.v1.2+json:
schema:
$ref: "#/components/schemas/DMPWithID"
application/json:
schema:
$ref: "#/components/schemas/DMPWithID"
401:
$ref: "#/components/responses/AuthenticationRequiredResponse"
403:
$ref: "#/components/responses/InsufficientPermissionsResponse"
404:
$ref: "#/components/responses/DMPNotFoundResponse"
406:
$ref: "#/components/responses/NotAcceptableResponse"
default:
$ref: "#/components/responses/GenericErrorResponse"
put:
operationId: putDMP
tags:
- DMP
summary: Overwrite a DMP
description: |
Completely overwrite a DMP with the specified data. The server MUST honor the If-Unmodified-Since and IF-Match
headers if present.
parameters:
- name: id
in: path
required: true
schema:
$ref: "#/components/schemas/DMPSystemID"
- name: If-Unmodified-Since
in: header
required: false
schema:
type: string
format: date-time
requestBody:
required: true
content:
application/vnd.org.rd-alliance.dmp-common.v1.2+json:
schema:
$ref: "#/components/schemas/DMPDocument"
application/json:
schema:
$ref: "#/components/schemas/DMPDocument"
responses:
200:
description: DMP modified
headers:
Last-Modified:
description: |
The server should expose the time the DMP was last modified to allow for a conditional PUT request.
This is especially important if the server does not support PATCH requests.
schema:
type: string
format: date-time
content:
application/vnd.org.rd-alliance.dmp-common.v1.2+json:
schema:
$ref: "#/components/schemas/DMPWithID"
application/json:
schema:
$ref: "#/components/schemas/DMPWithID"
400:
$ref: "#/components/responses/BadRequestResponse"
401:
$ref: "#/components/responses/AuthenticationRequiredResponse"
403:
$ref: "#/components/responses/InsufficientPermissionsResponse"
404:
$ref: "#/components/responses/DMPNotFoundResponse"
406:
$ref: "#/components/responses/NotAcceptableResponse"
409:
$ref: "#/components/responses/ConflictResponse"
415:
$ref: "#/components/responses/UnsupportedMediaTypeResponse"
default:
$ref: "#/components/responses/GenericErrorResponse"
delete:
operationId: deleteDMP
tags:
- DMP
summary: Delete a DMP
description: Delete a DMP based on its ID.
parameters:
- name: id
in: path
required: true
schema:
$ref: "#/components/schemas/DMPSystemID"
responses:
204:
description: DMP deleted
401:
$ref: "#/components/responses/AuthenticationRequiredResponse"
403:
$ref: "#/components/responses/InsufficientPermissionsResponse"
404:
$ref: "#/components/responses/DMPNotFoundResponse"
406:
$ref: "#/components/responses/NotAcceptableResponse"
409:
$ref: "#/components/responses/ConflictResponse"
default:
$ref: "#/components/responses/GenericErrorResponse"
components:
responses:
DMPListResponse:
description: "A list of DMPs"
content:
application/vnd.org.rd-alliance.dmp-common.v1.2+json:
schema:
$ref: "#/components/schemas/DMPListResponseBody"
application/json:
schema:
$ref: "#/components/schemas/DMPListResponseBody"
AuthenticationRequiredResponse:
description: |
Authentication required to delete the DMP. The implementation should always return this error code for
unauthenticated users as deletion always requires authentication.
content:
application/vnd.org.rd-alliance.dmp-common.v1.2+json:
schema:
$ref: "#/components/schemas/AuthenticationRequiredError"
application/json:
schema:
$ref: "#/components/schemas/AuthenticationRequiredError"
BadRequestResponse:
description: Bad request
content:
application/vnd.org.rd-alliance.dmp-common.v1.2+json:
schema:
$ref: "#/components/schemas/BadRequestError"
application/json:
schema:
$ref: "#/components/schemas/BadRequestError"
ConflictResponse:
description: |
A precondition specified in the If-Unmodified-Since or If-Match header cannot be
fulfilled. The client should apply the modifications again and resubmit the request.
content:
application/vnd.org.rd-alliance.dmp-common.v1.2+json:
schema:
$ref: "#/components/schemas/ConflictError"
application/json:
schema:
$ref: "#/components/schemas/ConflictError"
DMPNotFoundResponse:
description: |
DMP not found or not enough permissions to delete the specified DMP.
Security note: implementations may return this error code even if the DMP exists but the authenticated user
has no permissions to view it in order to avoid leaking information about the existence of a DMP. This may
especially be important if the DMP tool uses numeric IDs to avoid enabling an enumeration of possible DMP
IDs.
content:
application/vnd.org.rd-alliance.dmp-common.v1.2+json:
schema:
$ref: "#/components/schemas/DMPNotFoundError"
application/json:
schema:
$ref: "#/components/schemas/DMPNotFoundError"
GenericErrorResponse:
description: The request failed
content:
application/vnd.org.rd-alliance.dmp-common.v1.2+json:
schema:
$ref: "#/components/schemas/GenericError"
application/json:
schema:
$ref: "#/components/schemas/GenericError"
InsufficientPermissionsResponse:
description: |
Insufficient permissions to delete the specified a DMP.
Note: the implementation may opt to return a 404 instead to avoid leaking information about the
existence of a DMP with the specified ID if the user has no permissions to at least view this DMP. The
implementation SHOULD return this error code if the user has at least read permissions for this DMP.
content:
application/vnd.org.rd-alliance.dmp-common.v1.2+json:
schema:
$ref: "#/components/schemas/InsufficientPermissionsError"
application/json:
schema:
$ref: "#/components/schemas/InsufficientPermissionsError"
NotAcceptableResponse:
description: |
The server cannot produce a response that the client requested in its `Accept` header.
content:
application/vnd.org.rd-alliance.dmp-common.v1.2+json:
schema:
$ref: "#/components/schemas/NotAcceptableError"
application/json:
schema:
$ref: "#/components/schemas/NotAcceptableError"
UnsupportedMediaTypeResponse:
description: |
The server cannot process the request the client because it does not support the DMP standard the client
sent the document in.
content:
application/vnd.org.rd-alliance.dmp-common.v1.2+json:
schema:
$ref: "#/components/schemas/UnsupportedMediaTypeError"
application/json:
schema:
$ref: "#/components/schemas/UnsupportedMediaTypeError"
securitySchemes:
BearerAuth:
type: http
scheme: bearer
schemas:
#region IDs
DMPSystemID:
type: string
#endregion
#region Subordinate objects
DMPDocument:
type: object
properties:
dmp:
$ref: "#/components/schemas/DMPData"
DMPWithID:
allOf:
- $ref: "#/components/schemas/DMPDocument"
- type: object
required:
- id
properties:
id:
title: "ID"
description: "A system-dependent identifier for this DMP. The identifier is not valid outside of the current API, use the dmpId field in the DMP object itself it you need a system-independent identifier."
$ref: "#/components/schemas/DMPSystemID"
#endregion
#region Non-error responses
DMPListResponseBody:
type: object
required:
- total_count
- items
properties:
total_count:
type: integer
minimum: 0
items:
type: array
items:
$ref: "#/components/schemas/DMPWithID"
#endregion
#region Error responses
Error:
title: "Abstract error"
type: object
required:
- error_code
- error_message
properties:
error_code:
title: Error code
type: string
error_message:
title: Error message
description: A description of the error in English.
type: string
AuthenticationRequiredError:
title: "Authentication required"
description: Authentication required to perform the specified request.
allOf:
- $ref: "#/components/schemas/Error"
- type: object
required:
- error_code
properties:
error_code:
title: Error code
type: string
const: "authentication_required"
InsufficientPermissionsError:
title: "Insufficient permissions"
description: The current user has insufficient permissions to perform this action.
allOf:
- $ref: "#/components/schemas/Error"
- type: object
required:
- error_code
properties:
error_code:
title: Error code
type: string
const: "insufficient_permissions"
NotAcceptableError:
title: "Cannot meet Accept requirements"
description: The client has requested a DMP standard that the server cannot fulfill.
allOf:
- $ref: "#/components/schemas/Error"
- type: object
required:
- error_code
properties:
error_code:
title: Error code
type: string
const: "not_acceptable"
UnsupportedMediaTypeError:
title: "Unsupported DMP standard"
description: The server cannot process the DMP sent by the client because it does not support th especified MIME type.
allOf:
- $ref: "#/components/schemas/Error"
- type: object
required:
- error_code
properties:
error_code:
title: Error code
type: string
const: "unsupported_media_type"
DMPAlreadyExistsError:
title: "DMP already exists"
description: |
The DMP system has identified this DMP to be already present in the system based on its DMP ID or other
characteristics. The error response SHOULD contain the existing DMP ID.
allOf:
- $ref: "#/components/schemas/Error"
- type: object
required:
- error_code
properties:
error_code:
title: Error code
type: string
const: "dmp_already_exists"
DMPNotFoundError:
title: "DMP not found / insufficient permissions to access DMP"
description: |
This error can mean two things: either the specified DMP does not exist, or the implementation has chosen to
return a 404 error instead of a 401 or 403 to avoid leaking information about the existence of a DMP. If the
requester is not authenticated, the request may be retried after authentication to possibly retrieve the DMP.
allOf:
- $ref: "#/components/schemas/Error"
- type: object
required:
- error_code
properties:
error_code:
title: Error code
type: string
const: "dmp_not_found"
InvalidQueryStringError:
title: "Invalid query string"
description: |
The passed query string for a list request was invalid.
allOf:
- $ref: "#/components/schemas/Error"
- type: object
required:
- error_code
properties:
error_code:
title: Error code
type: string
const: "invalid_query_string"
ConflictError:
title: "Conflict"
description: |
The server failed to apply the patch because a JSON Patch test failed. If the patch applies successfully, but
results in an invalid DMP, an DMPInvalidResponse (400) is returned instead.
allOf:
- $ref: "#/components/schemas/Error"
- type: object
required:
- error_code
properties:
error_code:
title: Error code
type: string
const: "conflict"
BadRequestError:
title: "Bad request"
description: "The passed HTTP request was invalid."
oneOf:
- $ref: "#/components/schemas/InvalidQueryStringError"
- $ref: "#/components/schemas/DMPInvalidError"
- $ref: "#/components/schemas/GenericBadRequestError"
discriminator:
propertyName: error_code
mapping:
invalid_query_string: "#/components/schemas/InvalidQueryStringError"
invalid_dmp: "#/components/schemas/DMPInvalidError"
bad_request: "#/components/schemas/GenericBadRequestError"
GenericBadRequestError:
title: "Bad request"
description: "The request the client sent is invalid."
allOf:
- $ref: "#/components/schemas/Error"
- type: object
required:
- error_code
properties:
error_code:
title: Error code
type: string
const: "bad_request"
DMPInvalidError:
title: "Invalid DMP"
description: "The passed DMP was invalid"
allOf:
- $ref: "#/components/schemas/Error"
- type: object
required:
- error_code
properties:
error_code:
title: Error code
type: string
const: "dmp_invalid"
GenericError:
title: "Generic error"
type: object
allOf:
- $ref: "#/components/schemas/Error"
- type: object
required:
- error_code
properties:
error_code:
title: Error code
type: string
const: "generic_error"
#endregion
#region Common DMP format
DMP:
type: object
properties:
dmp:
$ref: "#/components/schemas/DMPData"
Affiliation:
type: object
title: Affiliation
properties:
affiliation_id:
$ref: "#/components/schemas/AffiliationID"
name:
type: string
title: Name
description: Name of the affiliation
examples:
- Some University
required:
- affiliation_id
- name
AffiliationID:
type: object
title: Affiliation ID
properties:
identifier:
type: string
title: Identifier
examples:
- 03yrm5c26
type:
type: string
title: Type
description: "Identifier type. Suggested Values: ror, grid, isni, other"
examples:
- ror
required:
- identifier
- type
AlternateIdentifier:
type: object
title: Alternate Identifier
properties:
identifier:
type: string
title: Identifier
description: Alternate identifier value
examples:
- E-GEOD-34814
type:
type: string
title: Type
description: Type of alternate identifier
examples:
- accession number
- doi
required:
- identifier
- type
Booleanish:
type: string
enum:
- "yes"
- "no"
- unknown
title: Booleanish
description: "To indicate whether there are ethical issues related to data that
this DMP describes. Allowed values: yes, no, unknown"
examples:
- "yes"
Certification:
type: string
enum:
- din31644
- dini-zertifikat
- dsa
- iso16363
- iso16919
- trac
- wds
- coretrustseal
title: Certification
description: "Repository certified to a recognised standard. Allowed values:
din31644, dini-zertifikat, dsa, iso16363, iso16919, trac, wds,
coretrustseal"
examples:
- coretrustseal
Contact:
type: object
title: Contact
description: Specifies the party which can provide any information on the DMP.
This is not necessarily the DMP creator, and can be a person or an
organisation.
properties:
affiliation:
type: array
title: Affiliations
description: Affiliation(s) of the contact
items:
$ref: "#/components/schemas/Affiliation"
contact_id:
oneOf:
- $ref: "#/components/schemas/ContactID"
- type: array
items:
$ref: "#/components/schemas/ContactID"
minItems: 1
mbox:
type: string
format: email
title: Mailbox
description: Contact Person's E-mail address
examples:
- cc@example.com
name:
type: string
title: Name
description: Name of the contact person
examples:
- Charlie Chaplin
required:
- contact_id
- mbox
- name
ContactID:
type: object
title: Contact ID
properties:
identifier:
type: string
title: Identifier
examples:
- 0000-0003-0644-4174
type:
type: string
title: Type
description: "Identifier type. Suggested values: orcid, isni, openid"
examples:
- orcid
required:
- identifier
- type
Contributor:
type: object
title: Contributor
properties:
affiliation:
type: array
title: Affiliations
description: Affiliation(s) of the contributor
items:
$ref: "#/components/schemas/Affiliation"
contributor_id:
oneOf:
- $ref: "#/components/schemas/ContributorID"
- type: array
items:
$ref: "#/components/schemas/ContributorID"
minItems: 0
mbox:
type: string
title: Mailbox
description: E-mail address for a contributor
examples:
- john@smith.com
format: email
name:
type: string
title: Name
description: Name of the contributor
examples:
- John Smith
role:
$ref: "#/components/schemas/ContributorRoles"
required:
- contributor_id
- name
- role
ContributorID:
type: object
title: Contributor ID
properties:
identifier:
type: string
title: Identifier
examples:
- 0000-0003-0644-4174
type:
type: string
title: Type
description: "Identifier type. Suggested values: orcid, isni, openid"
examples:
- orcid
required:
- identifier
- type
ContributorRole:
type: string
title: Contributor Role
description: Contributors role(s) within the process of data management (incl.
planning). It is recommended to use contributor types of DataCite Metadata
Schema
(https://datacite-metadata-schema.readthedocs.io/en/4.5/appendices/appendix-1/contributorType/).
examples:
- DataManager
- Researcher
ContributorRoles:
type: array
title: Contributor Roles
description: Type of contributor
items:
$ref: "#/components/schemas/ContributorRole"
uniqueItems: true
Contributors:
type: array
title: The Contributor Schema
items:
$ref: "#/components/schemas/Contributor"
Cost:
type: object
title: Cost
properties:
currency_code:
$ref: "#/components/schemas/CurrencyCode"
description:
type: string
title: Description
description: To provide additional details about a cost, including specifying
which activities or resources it relates to, such as making data FAIR,
ensuring data accessibility, or enhancing its reusability.
examples:
- Storage and backup costs are calculated based on a 12-month storage
period, daily incremental and weekly full backups, and a frequency
of 4 restores per month, as outlined in the evaluation table at
www.example-storagecostevaluation.com.
title:
type: string
title: Title
description: Title of a cost
examples:
- Storage and Backup
value:
type: number
title: Value
description: Cost value in the specified currency
examples:
- 1000
required:
- title
Costs:
type: array
title: Costs
items:
$ref: "#/components/schemas/Cost"
Creator:
type: object
title: Creator
properties:
affiliation: