Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
[codespell]
skip = .git,*.pdf,*.svg,go.sum,*.lock,.codespellrc,.yarn,node_modules,schema-validator.js,.pnp.cjs,funded_awards.json
skip = .git,*.pdf,*.svg,go.sum,*.lock,.codespellrc,.yarn,node_modules,schema-validator.js,.pnp.cjs,funded_awards.json,schema-1.1.1-datacite.json
check-hidden = true
ignore-regex = ^.{300,}$|/((.*\|){4,}.*\))|\b(afterAll)\b
ignore-words-list = chack
4 changes: 4 additions & 0 deletions cli/src/commands/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ export async function uploadAction(
// Match OpenNeuro's server side rules for datasetTypes overriding user settings
options.datasetTypes = ["raw", "derivative"]

// Use OpenNeuro's schema until datacite.yml is supported upstream
const schemaPath = new URL("../schema-1.1.1-datacite.json", import.meta.url)
options.schema = schemaPath.href

const schemaResult = await validate(
await readFileTree(dataset_directory_abs),
options,
Expand Down
Loading
Loading