-
Hi, My example yaml:
Parsing with v1.10.2:
And the errors are: In version 2.0.0-5, the parsed Document is:
and the errors are: There are clearly differences in the way these are parsed, you can see how PolicyDocument is an {} in the second case. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When you embed a flow collection within a block collection, you still need to follow the indentation rules of the outer collection. In other words, all of the flow collection needs to be more indented than its parent. The final closing brace can be at the same level as the key, but other parsers might complain about that. As for what changed, well, the parser was entirely rewritten from the ground up to include a lexer as the first step, and the intermediate CST structure is now completely different. In both cases, the parser is complaining about the input being broken, but the error messages are a bit different. |
Beta Was this translation helpful? Give feedback.
When you embed a flow collection within a block collection, you still need to follow the indentation rules of the outer collection. In other words, all of the flow collection needs to be more indented than its parent. The final closing brace can be at the same level as the key, but other parsers might complain about that.
As for what changed, well, the parser was entirely rewritten from the ground up to include a lexer as the first step, and the intermediate CST structure is now completely different. In both cases, the parser is complaining about the input being broken, but the error messages are a bit different.