{"action":"created","issue":{"url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/52","labels_url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/52/comments","events_url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/52/events","html_url":"https://github.com/proengsoft/laravel-jsvalidation/issues/52","id":101526189,"number":52,"title":"Wrong password confirmed rule convertion","user":{"login":"a-komarev","id":1849174,"avatar_url":"https://avatars.githubusercontent.com/u/1849174?v=3","gravatar_id":"","url":"https://api.github.com/users/a-komarev","html_url":"https://github.com/a-komarev","followers_url":"https://api.github.com/users/a-komarev/followers","following_url":"https://api.github.com/users/a-komarev/following{/other_user}","gists_url":"https://api.github.com/users/a-komarev/gists{/gist_id}","starred_url":"https://api.github.com/users/a-komarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-komarev/subscriptions","organizations_url":"https://api.github.com/users/a-komarev/orgs","repos_url":"https://api.github.com/users/a-komarev/repos","events_url":"https://api.github.com/users/a-komarev/events{/privacy}","received_events_url":"https://api.github.com/users/a-komarev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-17T22:50:42Z","updated_at":"2015-08-17T23:50:34Z","closed_at":null,"body":"My FormRequest\r\n```php\r\npublic function rules()\r\n{\r\n    return [\r\n        'email' => 'required|email',\r\n        'password' => 'required|confirmed',\r\n    ];\r\n}\r\n```\r\n\r\nConverted to:\r\n```json\r\nrules: {\r\n  \"email\": {\r\n    \"laravelValidation\": [\r\n      [\r\n        \"Required\",\r\n        [\r\n          \r\n        ],\r\n        \"The email field is required.\",\r\n        true\r\n      ],\r\n      [\r\n        \"Email\",\r\n        [\r\n          \r\n        ],\r\n        \"The email must be a valid email address.\",\r\n        false\r\n      ]\r\n    ]\r\n  },\r\n  \"password_confirmation\": {\r\n    \"laravelValidation\": [\r\n      [\r\n        \"Required\",\r\n        [\r\n          \r\n        ],\r\n        \"The password field is required.\",\r\n        true\r\n      ],\r\n      [\r\n        \"Confirmed\",\r\n        [\r\n          \"password\"\r\n        ],\r\n        \"The password confirmation does not match.\",\r\n        false\r\n      ]\r\n    ]\r\n  }\r\n},\r\nmessages: [\r\n  \r\n],\r\n```\r\n\r\nThere are no password field rules, they were applied to password_confirmed somehow."},"comment":{"url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/comments/131997399","html_url":"https://github.com/proengsoft/laravel-jsvalidation/issues/52#issuecomment-131997399","issue_url":"https://api.github.com/repos/proengsoft/laravel-jsvalidation/issues/52","id":131997399,"user":{"login":"torrentalle","id":1963459,"avatar_url":"https://avatars.githubusercontent.com/u/1963459?v=3","gravatar_id":"","url":"https://api.github.com/users/torrentalle","html_url":"https://github.com/torrentalle","followers_url":"https://api.github.com/users/torrentalle/followers","following_url":"https://api.github.com/users/torrentalle/following{/other_user}","gists_url":"https://api.github.com/users/torrentalle/gists{/gist_id}","starred_url":"https://api.github.com/users/torrentalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torrentalle/subscriptions","organizations_url":"https://api.github.com/users/torrentalle/orgs","repos_url":"https://api.github.com/users/torrentalle/repos","events_url":"https://api.github.com/users/torrentalle/events{/privacy}","received_events_url":"https://api.github.com/users/torrentalle/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T23:50:34Z","updated_at":"2015-08-17T23:50:34Z","body":"This is the expected beahviour. The rules are applied to `password_confirmed` to show the message in this element. "}}