Closed braydonk closed 2 days ago
Describe the bug The following YAML is invalid:
a: 'b' b: 1
It is invalid because the indentation level has changed after a scalar value, which doesn't make sense.
To Reproduce https://go.dev/play/p/WkfZUGjlNY6
Expected behavior This yaml should be rejected with an error.
Screenshots If applicable, add screenshots to help explain your problem.
Version Variables
Additional context In the playground, I show that yaml.v3 correctly rejects the invalid yaml.
yaml.v3
Very likely #358 is related
Thank you for your reporting. I'll try to fix this problem.
@braydonk Thank you for your reporting ! Also, Sorry for the late response. I've fixed this problem with latest release !
Describe the bug The following YAML is invalid:
It is invalid because the indentation level has changed after a scalar value, which doesn't make sense.
To Reproduce https://go.dev/play/p/WkfZUGjlNY6
Expected behavior This yaml should be rejected with an error.
Screenshots If applicable, add screenshots to help explain your problem.
Version Variables
Additional context In the playground, I show that
yaml.v3
correctly rejects the invalid yaml.