add patternProperties validation