Add JSON schema validation for the "patterns" scope