smittytone/PreviewYaml

Sequences aren't decoded correcly

Opened this issue · 1 comments

Test case to reproduce the issue
This fails:

name: My test YAML file
components:
- name: Component #1
  index: 0
- name: Component #2
  index: 1

while this succeeds:

name: My test YAML file
components:
  - name: Component #1
    index: 0
  - name: Component #2
    index: 1

Expectation: both inputs should succeed, and give the same results.

As noted in the Read Me's Troubleshooting section, this is caused by the YAML library I use: it is very strict about indentation. It's on my To Do list to devise a workaround or select an alternative YAML decoder.