Open shlake opened 8 months ago
Also discussed here: https://dataverse.zulipchat.com/#narrow/stream/378866-troubleshooting/topic/Validation.20Errors.20Creating.20a.20Dataset.20w.2F.20pyDataverse/near/399798357
Thanks, for opening this issue, Sherry!
Oh and on a related note, you and @JR-1991 might be interested in the new JSON Schema in this issue:
Bug report
dataset-finch1.json
When including license information in a dataset json file (see the above attached file), the file does not validate.
1. Describe your environment
2. Actual behaviour:
When reading in a dataset json file
ds.from_json(read_file(ds_filename))
(the one attached to this issue), I get the following errors:3. Expected behaviour:
This file does successfully create a dataset with the correct license when using the API via command line (curl). This command works:
curl -H "X-Dataverse-key:$API_TOKEN" -X POST "$SERVER_URL/api/dataverses/$PARENT/datasets" --upload-file dataset-finch1.json -H 'Content-type:application/json