Open valentinoli opened 3 years ago
Hi @valentinoli
Thanks for the issue. This is normal behaviour. It works the same way for the sources. Main reason is that actually both cases are array (in YAML) and therefore it would be complicated (even unclear at some points) to distinguish between the two.
Ah, I understand. Perhaps the YARRRML spec should be updated if only this syntax is supported since there are examples of both.
@valentinoli Ooh really? That should be updated then! @DylanVanAssche Can you have a look at the spec?
Examples of former (which yarrrml-parser
does not support):
Issue type: :bug: Bug
Description
The target is not mapped when we have a mapping with one target using shortcuts
Steps
YARRRML:
Output:
However, the following works:
YARRRML:
Output:
Environment
yarrrml-parser v1.3.0 (JS library)