23andMe / Yamale

A schema and validator for YAML.
MIT License
666 stars 88 forks source link

[Feature request] File exception #228

Open douernesto opened 11 months ago

douernesto commented 11 months ago

I use Yamale to validate data on all files recursively on a directory that contains information about Kubernetes resources. I just added a validation str(max=14) this one value cannot be longer that 14 characters, for all other resources thats is OK. However, I do have a file that I cannot change the value of this attribute (it has 16 characters), cause if I change it will recreate all the resources on that Kubernetes cluster.

Is there any way we can do file exception for an specific file or directory

For example:

yamale -s schemas/yamale.yaml data/tenancy/ --except "data/tenancy/file1.yaml"