datopian / datahub-qa

:package: Bugs, issues and suggestions for datahub.io
https://datahub.io/
32 stars 6 forks source link

Return more descriptive error message when 'name' is missing #248

Closed anuveyatsu closed 6 months ago

anuveyatsu commented 5 years ago

How to reproduce

Expected behavior

PiDelport commented 5 years ago

The data package validates locally:

$ data validate
> Your Data Package is valid!

The current error looks like:

$ data push 
Completed: datapackage.json
Completed: data/2msh-5az8.csv
> Error! Unexpected error: 'dataset'

Adding a check and message for data validate may make sense too?

After adding a top-level name field, the data package uploads successfully.

rufuspollock commented 6 months ago

OBSOLETE. This was for datahub-v2 and DataHub v3 is now out. Also think this will no longer be an issue.