simple-framework / wlcg_lightweight_site_config_validation_engine

A tool to validate the configuration files for all lightweight components based on the schema described by the component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validator for str

maany opened this issue · comments

Extend the existing str() yamale validator with following constraints:
str(contains=['a-z','A-Z','0-9','-',' '], regex="regex_to_match");
If contains is not specified, do nothing to validate that constraint. If it is specified, however, ensure that the string contains only the character groups specified.