Skip to content

Commit e98800e

Browse files
committed
relax id of datapackage.json as metadata to fix #104
1 parent 6a9d607 commit e98800e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: deposits
22
Title: A universal client for depositing and accessing research data
33
anywhere
4-
Version: 0.2.1.059
4+
Version: 0.2.1.060
55
Authors@R:
66
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
77
comment = c(ORCID = "0000-0003-2172-5265"))

R/metadata-validate.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ deposits_meta_from_file <- function (filename = NULL,
240240

241241
num_resources_local <- 0L
242242
meta <- jsonlite::read_json (filename)
243-
if (all (c ("profile", "metadata", "resources") %in% names (meta))) {
243+
# if (all (c ("profile", "metadata", "resources") %in% names (meta))) {
244+
if (all (c ("metadata", "resources") %in% names (meta))) {
244245
# datapackage.json:
245246
num_resources_local <- length (meta$resources)
246247
meta <- meta$metadata

codemeta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"codeRepository": "https://github.com/ropenscilabs/deposits",
88
"issueTracker": "https://github.com/ropenscilabs/deposits/issues",
99
"license": "https://spdx.org/licenses/MIT",
10-
"version": "0.2.1.059",
10+
"version": "0.2.1.060",
1111
"programmingLanguage": {
1212
"@type": "ComputerLanguage",
1313
"name": "R",

0 commit comments

Comments
 (0)