{"action":"created","issue":{"url":"https://api.github.com/repos/gitana/alpaca/issues/218","labels_url":"https://api.github.com/repos/gitana/alpaca/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/gitana/alpaca/issues/218/comments","events_url":"https://api.github.com/repos/gitana/alpaca/issues/218/events","html_url":"https://github.com/gitana/alpaca/issues/218","id":58740149,"number":218,"title":"Field gets validated, even it is not required","user":{"login":"PiQ99","id":4216455,"avatar_url":"https://avatars.githubusercontent.com/u/4216455?v=3","gravatar_id":"","url":"https://api.github.com/users/PiQ99","html_url":"https://github.com/PiQ99","followers_url":"https://api.github.com/users/PiQ99/followers","following_url":"https://api.github.com/users/PiQ99/following{/other_user}","gists_url":"https://api.github.com/users/PiQ99/gists{/gist_id}","starred_url":"https://api.github.com/users/PiQ99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PiQ99/subscriptions","organizations_url":"https://api.github.com/users/PiQ99/orgs","repos_url":"https://api.github.com/users/PiQ99/repos","events_url":"https://api.github.com/users/PiQ99/events{/privacy}","received_events_url":"https://api.github.com/users/PiQ99/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-24T13:47:34Z","updated_at":"2015-03-04T23:56:22Z","closed_at":null,"body":"Hey guys,\r\n\r\nI came across a next bug. At least I guess it is a bug.\r\nIf a form contains a few fields and one field has the \"minLength\" (&& \"maxLength\") set it gets validated, even it is not a required field. \r\nExample follows:\r\n\r\nhttp://jsfiddle.net/PiQ99/3pu8k169/ (no bootstrap-datepicker-dialog included, but not needed here)\r\n\r\nActually it should just be checked for the min/maxlength constraints, if the field is required or filled, or am I on the wrong track?"},"comment":{"url":"https://api.github.com/repos/gitana/alpaca/issues/comments/77277571","html_url":"https://github.com/gitana/alpaca/issues/218#issuecomment-77277571","issue_url":"https://api.github.com/repos/gitana/alpaca/issues/218","id":77277571,"user":{"login":"arthurportas","id":6153945,"avatar_url":"https://avatars.githubusercontent.com/u/6153945?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurportas","html_url":"https://github.com/arthurportas","followers_url":"https://api.github.com/users/arthurportas/followers","following_url":"https://api.github.com/users/arthurportas/following{/other_user}","gists_url":"https://api.github.com/users/arthurportas/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurportas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurportas/subscriptions","organizations_url":"https://api.github.com/users/arthurportas/orgs","repos_url":"https://api.github.com/users/arthurportas/repos","events_url":"https://api.github.com/users/arthurportas/events{/privacy}","received_events_url":"https://api.github.com/users/arthurportas/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T23:56:22Z","updated_at":"2015-03-04T23:56:22Z","body":"Hi,\r\nmentioned attributes are not related as per the html5 specification.\r\nhttp://www.w3.org/TR/html5/forms.html#the-required-attribute\r\nhttp://www.w3.org/TR/html5/forms.html#the-maxlength-and-minlength-attributes\r\nIt's up to developer's responsibility to manage this scenario.\r\nCheers,\r\n"}}