Skip to content

Commit

Permalink
Merge pull request #825 from NeurodataWithoutBorders/remove-embargo
Browse files Browse the repository at this point in the history
Remove embargo option from Dandiset creation
  • Loading branch information
CodyCBakerPhD authored Jun 4, 2024
2 parents 98f14c0 + cc52395 commit 7546281
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/schemas/dandi-create.schema.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import create from './json/dandi/create.json' assert { type: "json" }
import create from './json/dandi/create_no_embargo.json' assert { type: "json" }
const schema = structuredClone(create)

export default schema
60 changes: 60 additions & 0 deletions src/schemas/json/dandi/create_no_embargo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"order": [
"title",
"archive",
"embargo_status",
"description",
"license"
],
"properties": {

"title": {
"type": "string",
"description": "Provide a title for this Dandiset. The title will appear in search results and at the top of the home page for this Dandiset, so make it concise and descriptive"
},

"archive": {
"type": "string",
"enumLabels": {
"staging": "Development Server",
"main": "Main Archive"
},
"enum": ["main", "staging"],
"description": "Which DANDI server to upload to. <br><small><b>Note:</b> The Development Server is recommended for developers, or users learning to use DANDI</small>"
},

"description": {
"type": "string",
"description": "Provide a description for this Dandiset. This will appear prominently under the title in the home page for this Dandiset."
},

"license": {
"type": "array",
"description": "Provide a set of licenses for this Dandiset. Review the individual licenses and select the one that best fits your needs.",
"items": {
"type": "string",
"enumLinks": {
"spdx:CC0-1.0": "https://creativecommons.org/public-domain/cc0/",
"spdx:CC-BY-4.0": "https://creativecommons.org/licenses/by/4.0/deed.en"
},
"enumKeywords": {
"spdx:CC0-1.0": ["No Rights Reserved"],
"spdx:CC-BY-4.0": ["Attribution 4.0 International"]
},
"enumLabels": {
"spdx:CC0-1.0": "CC0 1.0",
"spdx:CC-BY-4.0": "CC BY 4.0"
},
"enum": [
"spdx:CC0-1.0",
"spdx:CC-BY-4.0"
]
},
"maxItems": 1,
"uniqueItems": true,
"strict": true
}

},
"required": ["title", "description", "license", "archive"]
}

0 comments on commit 7546281

Please sign in to comment.