jd icon indicating copy to clipboard operation
jd copied to clipboard

Support mutli-document YAML files

Open Wikiwix opened this issue 3 years ago • 3 comments

For YAMLs it would be great to be able to compare mutli-document files.

For JSON potentially ndjson could be supported, too.

Wikiwix avatar Feb 11 '22 09:02 Wikiwix

This is an interesting idea. How do you imagine this would look like on the commandline? And how would it treat the order of the documents with the A and B inputs?

I suppose we could just read a multi-document file (YAML or JSON) and push that into a jsonArray time. Then we can let the user supply keys to match up documents (existing feature).

josephburnett avatar Mar 31 '22 08:03 josephburnett

Sounds good to me, the list should per default handled as multiset (-mset) though, because the YAML documents do not have an order, but "repetitions" matter

Wikiwix avatar Apr 06 '22 15:04 Wikiwix