Re: "YAML Easy Schemas"

Trans <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <151a8ffd-438c-4ce4-8222-cc893e01a8d2@em7g2000vbb.googlegroups.com>

On Jun 27, 9:15 am, Brad Baxter <[email protected]> wrote:
> Hello,
>
> FWIW, yes, I like the name. A couple
> of words popped out as I read the docs:
>
> s/entriess/entries/;
> s/spaces/newlines/;
>
> I'm not a ruby guy, so I'm not like to help
> with code, sorry.  Quick question, though:
> What does a yes file for a yes file look like?

Awesome question! And fun to work out, as the command line to validate
was:

    $ yaml-yes yes.yes yes.yes

:-)

Simplistically it works out thus far to be:

    ---
    /*:
      type: map

    /*/type:
      type: str

    /*/required:
      type: bool

    /*/range:
      type: str
      pattern: '^\d+\.\.(\d+|n)$'

    /*/pattern:
      type: str

    /*/fnmatch:
      type: str

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.