From cc523955ff79a4c94492fcbdd0321238650a603b Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Mon, 3 Jun 2024 14:51:23 -0500 Subject: [PATCH] Remove embargo option from Dandiset creation --- src/schemas/dandi-create.schema.ts | 2 +- src/schemas/json/dandi/create_no_embargo.json | 60 +++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 src/schemas/json/dandi/create_no_embargo.json diff --git a/src/schemas/dandi-create.schema.ts b/src/schemas/dandi-create.schema.ts index 7b08cd927e..8c44ce4477 100644 --- a/src/schemas/dandi-create.schema.ts +++ b/src/schemas/dandi-create.schema.ts @@ -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 diff --git a/src/schemas/json/dandi/create_no_embargo.json b/src/schemas/json/dandi/create_no_embargo.json new file mode 100644 index 0000000000..2e5ec3d737 --- /dev/null +++ b/src/schemas/json/dandi/create_no_embargo.json @@ -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.
Note: The Development Server is recommended for developers, or users learning to use DANDI" + }, + + "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"] +}