[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [tosca] key_schema in TOSCA 1.3?
The ruamel parser I use flags duplicate keys as an error. I assume that is the desired behavior, but youâre right that we should state that explicitly in the
spec. Chris From: tosca@lists.oasis-open.org [mailto:tosca@lists.oasis-open.org]
On Behalf Of Tal Liron Final chapter in the drama: I have found a solution in Go for complex keys in YAML. It's very complex -- basically I had to redo some of the decoding that the YAML library does, but it does work with the public APIs and does emit an error
if duplicate complex keys are used in a YAML map. One thing to note -- most YAML parsers are "non-strict" in that they allow for maps to have repeating keys, in which case later keys tend to override previous ones. Except ... in the case of a YAML merge (<<) in which the spec specifically
says that keys do not get overridden. Does TOSCA specify if duplicate keys are allowed? It's probably a good idea to do so in order to maintain compatibility between TOSCA parsers. |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]