Re: The same tag for different kinds

Andrey Somov <[email protected]> Fri, 11 Mar 2016 09:58:23 +0100
Newsgroups gmane.text.yaml.general
Message-ID <CALbkv0cWqauQHCLSXTfFQwRJUmspqwEVH2TOPcqdH5UT+X8dMQ@mail.gmail.com>
On Fri, Mar 11, 2016 at 9:36 AM, Oren Ben-Kiki <[email protected]> wrote:

> Technically the library should reject an attempt to register the same tag
> with different kinds...
>
>
It means that this YAML is invalid (or not ?):
---
scalar: !foo bar
seq: !foo [bar]
...

As far as I understand there is no restriction now to use the very same
custom tag for different kinds.

Andrey

Something like resolvers[tag] = { required-kind: ..., condition-on-path:
> ..., condition-on-content: ..., construction-function: ... } would provide
> the correct data model.
>

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core