claylo / yaml-include

Valid, modular YAML documents with js-yaml. Seriously.
ISC License
39 stars 17 forks source link

lists/arrays are converted to indexed object when included #4

Closed naltatis closed 7 years ago

naltatis commented 8 years ago
// main.yaml
colors: !!inc/file colors.yaml

// colors.yaml
[red, yellow, green]

Currently this returns something that looks like this:

{colors: {0: "red", 1: "yellow", 2: "green"}}

but I would expect to get something like this:

{colors: ["red","yellow","green"]}

This seems like a bug, correct? naltatis

claylo commented 7 years ago

Fixed with release 1.2.0. Thank you!