cldf / csvw

CSV on the web
Apache License 2.0
36 stars 5 forks source link

Support datapackage.yaml #63

Closed ioggstream closed 2 years ago

ioggstream commented 2 years ago

I expect

Instead

xrotwang commented 2 years ago

AFAICT, the datapackage specification says

A Data Package descriptor MUST be a valid JSON object

Now, I'm aware of the discussion about allowing yaml as alternative descriptor format, but the support for datapackages in this package is more a proof-of-concept feature and will likely never be complete (e.g. support anything beyond tabular data resources). So rather than expecting yaml support from csvw, I'd hope for a yaml-to-json converter in datapackages tooling once yaml is officially recognized as descriptor format.

ioggstream commented 2 years ago

Hi @xrotwang ! I found on this FAQ that frictionless works both on JSON and YAML. If you want, I can provide a PR but if you confirm this is wontfix, that's fine too :) Have a nice day, R.

https://framework.frictionlessdata.io/docs/faq/#why-am-i-getting-the-error-cannot-extract-tabular-data-from-json

xrotwang commented 2 years ago

If you create the datapackage descriptor via frictionless describe, then passing the --json option would be all that's needed to get JSON metadata. And I think I'd rather de-emphasize the datapackage support here, than having to deal with two specs in this one package :)