{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/7407","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/7407/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/7407/comments","events_url":"https://api.github.com/repos/angular/angular/issues/7407/events","html_url":"https://github.com/angular/angular/issues/7407","id":138300305,"number":7407,"title":"Request to have validation errors named in camelCase opposed to all lowercase","user":{"login":"jevenson","id":9632520,"avatar_url":"https://avatars.githubusercontent.com/u/9632520?v=3","gravatar_id":"","url":"https://api.github.com/users/jevenson","html_url":"https://github.com/jevenson","followers_url":"https://api.github.com/users/jevenson/followers","following_url":"https://api.github.com/users/jevenson/following{/other_user}","gists_url":"https://api.github.com/users/jevenson/gists{/gist_id}","starred_url":"https://api.github.com/users/jevenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jevenson/subscriptions","organizations_url":"https://api.github.com/users/jevenson/orgs","repos_url":"https://api.github.com/users/jevenson/repos","events_url":"https://api.github.com/users/jevenson/events{/privacy}","received_events_url":"https://api.github.com/users/jevenson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-03-03T21:19:48Z","updated_at":"2016-03-04T18:21:19Z","closed_at":null,"body":"See the code below:\r\nhttps://github.com/angular/angular/blob/38cb526f60f910ddbdb532639a03b57d9da378c5/modules/angular2/src/common/forms/validators.ts#L60\r\n\r\nIf I use the `minLength` validator on a control, the error I check for is `minlength`. It's just a bit inconsistent, so that's why I'm suggesting this change.\r\n\r\nThoughts?\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/192393018","html_url":"https://github.com/angular/angular/issues/7407#issuecomment-192393018","issue_url":"https://api.github.com/repos/angular/angular/issues/7407","id":192393018,"user":{"login":"ScottMGerstl","id":10718938,"avatar_url":"https://avatars.githubusercontent.com/u/10718938?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottMGerstl","html_url":"https://github.com/ScottMGerstl","followers_url":"https://api.github.com/users/ScottMGerstl/followers","following_url":"https://api.github.com/users/ScottMGerstl/following{/other_user}","gists_url":"https://api.github.com/users/ScottMGerstl/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottMGerstl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottMGerstl/subscriptions","organizations_url":"https://api.github.com/users/ScottMGerstl/orgs","repos_url":"https://api.github.com/users/ScottMGerstl/repos","events_url":"https://api.github.com/users/ScottMGerstl/events{/privacy}","received_events_url":"https://api.github.com/users/ScottMGerstl/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T18:21:19Z","updated_at":"2016-03-04T18:21:19Z","body":"or apply both\r\n\r\n```\r\nstatic minLength(minLength: number): Function {\r\n    return (control: modelModule.Control): {[key: string]: any} => {\r\n      if (isPresent(Validators.required(control))) return null;\r\n      var v: string = control.value;\r\n      return v.length < minLength ?\r\n                 {\"minlength\": {\"requiredLength\": minLength, \"actualLength\": v.length}, \"minLength\": {\"requiredLength\": minLength, \"actualLength\": v.length}} :\r\n                 null;\r\n    };\r\n  }\r\n```"}}