These are chat archives for frictionlessdata/chat

4th
Aug 2016
Robert Gieseke
@rgieseke
Aug 04 2016 09:17
Hi! I added primary keys to a data package I created (https://github.com/openclimatedata/paris-agreement-entry-into-force) and accidentally moved them outside of "schema". Is "dpm validate" supposed to warn about something like that? If yes, which repo to consult?
Daniel Fowler
@danfowler
Aug 04 2016 14:30

Hi @rgieseke. In general, the specs allow for additional properties in your datapackage.json. In particular, it looks like “primaryKey” ended up in a “resource” which explicitly allows for this:

A resource MAY contain any number of additional fields.

http://specs.frictionlessdata.io/data-packages/#optional-fields-1

So dpm validate wouldn’t be able to catch that
Robert Gieseke
@rgieseke
Aug 04 2016 15:43
Thanks @danfowler, that makes sense!
Daniel Fowler
@danfowler
Aug 04 2016 16:53
:+1: