[ 
https://issues.apache.org/jira/browse/ARIA-231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tal Liron updated ARIA-231:
---------------------------
    Description: 
Investigate what happens when a YAML section appears twice, e.g.:
{code}
node_templates:
  my_template:
    requirements:
      ...
    requirements:
      ...
{code}
There are currently no errors for this. :/

One would imagine that it's illegal YAML for a dict key to appear twice, and 
that the YAML parser should fail. If it's indeed a YAML parser bug, it might 
difficult to detect...

  was:
Investigate what happens when a YAML section appears twice, e.g.:
{code}
node_templates:
  my_template:
    requirements:
      ...
    requirements:
      ...
{code}
One would imagine that it's illegal YAML for a dict key to appear twice, and 
that the YAML parser should fail. If it's indeed a YAML parser bug, it might 
difficult to detect...


> Parser does not show validation error if the same section appears twice
> -----------------------------------------------------------------------
>
>                 Key: ARIA-231
>                 URL: https://issues.apache.org/jira/browse/ARIA-231
>             Project: AriaTosca
>          Issue Type: Task
>            Reporter: Tal Liron
>            Priority: Minor
>
> Investigate what happens when a YAML section appears twice, e.g.:
> {code}
> node_templates:
>   my_template:
>     requirements:
>       ...
>     requirements:
>       ...
> {code}
> There are currently no errors for this. :/
> One would imagine that it's illegal YAML for a dict key to appear twice, and 
> that the YAML parser should fail. If it's indeed a YAML parser bug, it might 
> difficult to detect...



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to