23andMe / Yamale

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

Instead of character based string exclusion, excluding the entire search string #227

Open mifrank-cg opened 11 months ago

mifrank-cg commented 11 months ago

The string validation str(exclude='abcd') prohibits the occurrence of each single character of the exclude string. But I would like to prohibit the occurrence of the entire string "abcd". So, I would like to prohibit specific words. Unfortunately, the options are too many, so I cannot allow them with "enum", instead I would like to define the not allowed words in my yaml file.