Re: Directives in streams for YAML 1.2

Oren Ben-Kiki <[email protected]> Tue, 1 Mar 2016 20:42:27 +0200
Newsgroups gmane.text.yaml.general
Message-ID <CADJiDhvBpeUBh447x-eNVwCpYukw-bajVNsMuW_nDyRy4d-Zbw@mail.gmail.com>
This is not stated clearly enough. Closest we have is: "Note that each
document <http://www.yaml.org/spec/1.2/spec.html#document//> is independent
of the rest, allowing for heterogeneous log file entries.". In YAML 1.2,
directives are associated with the document. They do not carry over to
following documents.

This makes concatenating streams a safer practice.

Oren.


On Tue, Mar 1, 2016 at 7:18 PM, Andrey Somov <[email protected]> wrote:

> Hi all,
> the YAML 1.1 specification contains an explicit definition for directive
> in complete streams - http://yaml.org/spec/1.1/current.html#id898785
>
> This is the definition:
> If the document <http://yaml.org/spec/1.1/current.html#document/syntax>
> specifies no directives
> <http://yaml.org/spec/1.1/current.html#directive/syntax>, it is parsed
> <http://yaml.org/spec/1.1/current.html#parse/> using the same settings as
> the previous document
> <http://yaml.org/spec/1.1/current.html#document/syntax>. If the document
> <http://yaml.org/spec/1.1/current.html#document/syntax> does specify any
> directives <http://yaml.org/spec/1.1/current.html#directive/syntax>, all
> directives <http://yaml.org/spec/1.1/current.html#directive/syntax> of
> previous documents <http://yaml.org/spec/1.1/current.html#document/syntax>,
> if any, are ignored.
>
> This is the example: Example 7.13. Next Documents
>
> But I could not find the same definition in YAML 1.2.
>
> What happens with YAML and TAG directives in complete streams ?
> Is it the same as in YAML 1.1 ?
>
> Cheers,
> Andrey
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> Yaml-core mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/yaml-core
>
>

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140

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