These are chat archives for frictionlessdata/chat

20th
Apr 2018
Anuar Ustayev
@anuveyatsu
Apr 20 2018 11:21

Validate your Data Package descriptor online

To help users with creation of Data Packages we have implemented a descriptor validation tool.
Now users can check the Data Package descriptor to be sure they have no errors in it.

https://datahub.io/blog/online-validation-tool

This is a blog post. To read full text, please, follow the link above.

Stephen Gates
@Stephen-Gates
Apr 20 2018 11:31
@anuveyatsu just validated https://raw.githubusercontent.com/frictionlessdata/example-data-packages/48a4399b23d83a2dba98e75cb43ae3beec5e3bfa/donations/datapackage.json successfully - I was expecting an error due to Foreign Keys - where do I report issues?
Anuar Ustayev
@anuveyatsu
Apr 20 2018 11:32
Hi @Stephen-Gates all issues can be reported in https://github.com/datahq/datahub-qa/issues
Christophe Benz
@cbenz
Apr 20 2018 14:10

@cbenz Sorry It's not documented for now. Can you try apiSourceId='9b6b6391-5404-4e7f-bdb8-271c2cb42fbb'. It should be the source for public validation

It works, thanks!

Dima German
@AcckiyGerman
Apr 20 2018 14:20

@Stephen-Gates

const {Package} = require('datapackage')
package = await Package.load('https://raw.githubusercontent.com/frictionlessdata/example-data-packages/48a4399b23d83a2dba98e75cb43ae3beec5e3bfa/donations/datapackage.json')
console.log(package.valid)  // True
console.log(package.errors)  // [ ]

If there really should be an error due to Foreign Keys - we have to do a PR to frictionlessdata/datapackage-js then

Stephen Gates
@Stephen-Gates
Apr 20 2018 20:40
@AcckiyGerman, we’ve started on making the change ODIQueensland/data-curator#277 to support the Foreign Keys across Data Packages (hence my test above)