Re: The same tag for different kinds
Andrey Somov <[email protected]> Fri, 11 Mar 2016 10:27:24 +0100
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <CALbkv0eSx_YTZegWiiyWYb6znJ4_DHUmMm_mvraVig__C=bW9Q@mail.gmail.com> |
Thank you Oren. On Fri, Mar 11, 2016 at 10:13 AM, Oren Ben-Kiki <[email protected]> wrote: > 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