Re: [Puppet-dev] Proposal: JSON serialization schema testing

2011-03-09 Thread Luke Kanies
On Mar 8, 2011, at 5:22 AM, Markus Roberts wrote: > >> - Vendor the "json_shape" library, a lightweight JSON schema validator >> (https://github.com/jes5199/json_shape). > > I'm fully in support of this proposal, with one caveat: The definition of > 'vendor'. Do you mean creating a vendor di

Re: [Puppet-dev] Proposal: JSON serialization schema testing

2011-03-08 Thread Markus Roberts
> - Vendor the "json_shape" library, a lightweight JSON schema validator ( > https://github.com/jes5199/json_shape). > > I'm fully in support of this proposal, with one caveat: The definition of > 'vendor'. Do you mean creating a vendor directly in the puppet repo and > adding it as a gem there,

Re: [Puppet-dev] Proposal: JSON serialization schema testing

2011-03-07 Thread Luke Kanies
On Mar 7, 2011, at 1:32 PM, Paul Berry wrote: > Puppet currently produces and consumes data in several formats which: > - are not explicitly documented > - are sometimes modified by mistake (e.g. when a developer adds a private > instance variable to a class, and that instance variable gets autom

Re: [Puppet-dev] Proposal: JSON serialization schema testing

2011-03-07 Thread Daniel Pittman
I think this is a wonderful plan, and fully support it. For the approach of taking this also to YAML, I have had some decent experience with Rx (http://rx.codesimply.com/index.html) in producing schema validation that is coherent between YAML and JSON. I am not suggesting an alternative to json_s

[Puppet-dev] Proposal: JSON serialization schema testing

2011-03-07 Thread Paul Berry
Puppet currently produces and consumes data in several formats which: - are not explicitly documented - are sometimes modified by mistake (e.g. when a developer adds a private instance variable to a class, and that instance variable gets automatically serialized to YAML) - are sometimes modified wi