{"action":"created","issue":{"url":"https://api.github.com/repos/foxhound87/mobx-react-form/issues/179","repository_url":"https://api.github.com/repos/foxhound87/mobx-react-form","labels_url":"https://api.github.com/repos/foxhound87/mobx-react-form/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/foxhound87/mobx-react-form/issues/179/comments","events_url":"https://api.github.com/repos/foxhound87/mobx-react-form/issues/179/events","html_url":"https://github.com/foxhound87/mobx-react-form/issues/179","id":197135271,"number":179,"title":"correct way to specify nested rules?","user":{"login":"w-","id":357317,"avatar_url":"https://avatars.githubusercontent.com/u/357317?v=3","gravatar_id":"","url":"https://api.github.com/users/w-","html_url":"https://github.com/w-","followers_url":"https://api.github.com/users/w-/followers","following_url":"https://api.github.com/users/w-/following{/other_user}","gists_url":"https://api.github.com/users/w-/gists{/gist_id}","starred_url":"https://api.github.com/users/w-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w-/subscriptions","organizations_url":"https://api.github.com/users/w-/orgs","repos_url":"https://api.github.com/users/w-/repos","events_url":"https://api.github.com/users/w-/events{/privacy}","received_events_url":"https://api.github.com/users/w-/received_events","type":"User","site_admin":false},"labels":[{"id":395806391,"url":"https://api.github.com/repos/foxhound87/mobx-react-form/labels/bug","name":"bug","color":"d93f0b","default":true},{"id":395806394,"url":"https://api.github.com/repos/foxhound87/mobx-react-form/labels/help%20wanted","name":"help wanted","color":"c2e0c6","default":true},{"id":395806396,"url":"https://api.github.com/repos/foxhound87/mobx-react-form/labels/question","name":"question","color":"bfdadc","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-22T09:54:20Z","updated_at":"2016-12-22T15:30:22Z","closed_at":null,"body":"if i have a form that is defined \r\n\r\n```\r\n// this was edited to correct a typo. was originally \"const rules\"\r\nconst fields =[\r\n\t'name',\r\n\t'list.cat1',\r\n\t'list.cat1[].name',\r\n\t'list.cat1[].url',\r\n\t'list.cat2',\r\n\t'list.cat2[].name',\r\n\t'list.cat2[].url',\r\n]\r\n\r\n```\r\n\r\nis it correct for me to define the rules like:\r\n```\r\nconst rules = {\r\n\t'name': 'string|required|between:1,255',\r\n\t'list.cat1[].url' : 'url|required',\r\n\t'list.cat2[].url' : 'url|required',\r\n}\r\n```\r\n\r\nwhen i attempt to validate the form, it appears that the nested fields are not getting validated. i.e. list.cat1[].url and list.cat2[].url \r\n"},"comment":{"url":"https://api.github.com/repos/foxhound87/mobx-react-form/issues/comments/268823186","html_url":"https://github.com/foxhound87/mobx-react-form/issues/179#issuecomment-268823186","issue_url":"https://api.github.com/repos/foxhound87/mobx-react-form/issues/179","id":268823186,"user":{"login":"w-","id":357317,"avatar_url":"https://avatars.githubusercontent.com/u/357317?v=3","gravatar_id":"","url":"https://api.github.com/users/w-","html_url":"https://github.com/w-","followers_url":"https://api.github.com/users/w-/followers","following_url":"https://api.github.com/users/w-/following{/other_user}","gists_url":"https://api.github.com/users/w-/gists{/gist_id}","starred_url":"https://api.github.com/users/w-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w-/subscriptions","organizations_url":"https://api.github.com/users/w-/orgs","repos_url":"https://api.github.com/users/w-/repos","events_url":"https://api.github.com/users/w-/events{/privacy}","received_events_url":"https://api.github.com/users/w-/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T15:30:22Z","updated_at":"2016-12-22T15:30:22Z","body":"do you mind taking a quick look at this gist?\r\nit's pretty much my form at this point\r\nhttps://gist.github.com/w-/3e15cadc60c9910c66c16b3b8f9d37c4\r\n\r\nin onInit, i've commented out one of the del() statements.\r\nthis is so i can verify the rule is correct. in devtools we can see that the rule is added successfully to the default element added.\r\n\r\ni'm basically testing the update and validation behavior by calling \"createNewArticle\"\r\n\r\nWhen I call that function and observe the dev tools, the rules suddenly disappear after running the update. both in the old element and the new one.\r\n"}}
{"actor":{"display_login":"w-"}}