miller icon indicating copy to clipboard operation
miller copied to clipboard

Feature request for the 6 version: add YAML format support

Open aborruso opened this issue 3 years ago • 8 comments

Hi @johnkerl , YAML is now a very popular file format. Miller already support JSON and I think that in GO there are a lot of YAML libraries.

It would be very convenient to be able to use a yaml file, as today it is already possible with a json file (I mean with the same limitations).

Thank you

aborruso avatar Aug 02 '21 10:08 aborruso

@aborruso thanks!

Support for a subset of YAML, is doable. Full YAML I don't want to deal with -- including possible cyclic references.

johnkerl avatar Aug 02 '21 16:08 johnkerl

I think a subset of YAML is really all that is needed, since complex/ridiculous self-referential YAMLs are likely not tabular in nature anyway, and I suspect almost all Miller users are using it to wrangle tabular-like data.

JensRoland avatar Jan 27 '22 14:01 JensRoland

@aborruso @JensRoland thanks for the bar-lowering reassurances!! ;)

Does either of you have some examples of some YAML data you'd like to be able to process using Miller?

johnkerl avatar Jan 27 '22 14:01 johnkerl

Does either of you have some examples of some YAML data you'd like to be able to process using Miller?

The first one is this https://github.com/johnkerl/miller/blob/main/docs/mkdocs.yml :)

aborruso avatar Jan 27 '22 14:01 aborruso

Does either of you have some examples of some YAML data you'd like to be able to process using Miller?

This kind https://github.com/ministero-salute/it-dgc-opendata/blob/master/datapackage.yaml

aborruso avatar Jan 27 '22 15:01 aborruso

Does either of you have some examples of some YAML data you'd like to be able to process using Miller?

To read OpenAPI schema https://app.data.opendatacovid.gssi.it/api/opendata/schema/

aborruso avatar Jan 29 '22 07:01 aborruso