Skip to content

Commit

Permalink
disallow DUOS id for data_use_restriction=NRES
Browse files Browse the repository at this point in the history
  • Loading branch information
idazucchi committed Mar 11, 2024
1 parent 065087e commit 342096b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/jsonBrowser/type.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ biostudies_accessions | A BioStudies study accession. | array | no | | BioStudi
funders | Funding source(s) supporting the project. | array | yes | [See module funder](module.md#funder) | Funding source(s) | |
estimated_cell_count | An estimated number of cells in this project | integer | no | | Estimated cell count | | 10000; 2100000
data_use_restriction | Data use restrictions that apply to the project. | string | yes | | Data use restriction | NRES, GRU, GRU-NCU | GRU
DUOS_id | A DUOS study accession. | array | no | | DUOS id | | DUOS-000108; DUOS-000114
DUOS_id | A DUOS study accession. | string | no | | DUOS id | | DUOS-000108; DUOS-000114

## Specimen from organism
_Information about the specimen that was collected from the donor organism._
Expand Down
17 changes: 12 additions & 5 deletions json_schema/type/project/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,8 @@
},
"DUOS_id": {
"description": "A DUOS study accession.",
"type": "array",
"items": {
"type": "string",
"pattern": "^DUOS-\\d{1,6}$"
},
"type": "string",
"pattern": "^DUOS-\\d{1,6}$",
"example": "DUOS-000108; DUOS-000114",
"user_friendly": "DUOS id",
"guidelines": "Managed access projects are registered in DUOS to regulate access. If the project is managed access record the corresponding DUOS id here."
Expand All @@ -202,5 +199,15 @@
},
"then" : {
"required": ["DUOS_id"]
},
"else" : {
"properties": {
"data_use_restriction" : {
"enum": ["NRES"]
},
"DUOS_id" : {
"maxLength": 0
}
}
}
}

0 comments on commit 342096b

Please sign in to comment.