Re: The same tag for different kinds

Oren Ben-Kiki <[email protected]> Fri, 11 Mar 2016 11:13:26 +0200
Newsgroups gmane.text.yaml.general
Message-ID <CADJiDhvMDCrK-FfGBWwYXzm3Lx6zBiV4SdDxjGP9s9P6F1Jp8g@mail.gmail.com>
Technically it isn't valid.

On Fri, Mar 11, 2016 at 10:58 AM, Andrey Somov <[email protected]>
wrote:

>
>
> 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