On 2015-25-03 20:06, Corey Osman wrote:
> Hi,
>
> Has anybody created a yaml Kwalify schema for hiera files. I would like to validate my yaml files against an official hiera schema using Kwalify. Since the YAML spec varies greatly a schema is required to validate hiera specific keys.
>
Exactly which "hiera files" do you mean?
The format is very much up to the implementation of a particular backend.
I also wonder if what you are trying to achieve is possible to check
with Kwalify - I expect it to load the yaml using a yaml implementation,
and thus any lexical problems in your yaml files have already occured
due to differences in yaml implementations.
The result could still be valid - only not what you intended.
This lexical problem is different than validating that the structural
content follows a particular yaml schema.
- henrik
>
> Corey
>
--
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/