{"action":"opened","issue":{"url":"https://api.github.com/repos/monterail/vuelidate/issues/39","repository_url":"https://api.github.com/repos/monterail/vuelidate","labels_url":"https://api.github.com/repos/monterail/vuelidate/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/monterail/vuelidate/issues/39/comments","events_url":"https://api.github.com/repos/monterail/vuelidate/issues/39/events","html_url":"https://github.com/monterail/vuelidate/issues/39","id":197459075,"number":39,"title":"Between numbers from state","user":{"login":"balazscsintalan","id":21295707,"avatar_url":"https://avatars.githubusercontent.com/u/21295707?v=3","gravatar_id":"","url":"https://api.github.com/users/balazscsintalan","html_url":"https://github.com/balazscsintalan","followers_url":"https://api.github.com/users/balazscsintalan/followers","following_url":"https://api.github.com/users/balazscsintalan/following{/other_user}","gists_url":"https://api.github.com/users/balazscsintalan/gists{/gist_id}","starred_url":"https://api.github.com/users/balazscsintalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balazscsintalan/subscriptions","organizations_url":"https://api.github.com/users/balazscsintalan/orgs","repos_url":"https://api.github.com/users/balazscsintalan/repos","events_url":"https://api.github.com/users/balazscsintalan/events{/privacy}","received_events_url":"https://api.github.com/users/balazscsintalan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-24T11:16:13Z","updated_at":"2016-12-24T11:16:13Z","closed_at":null,"body":"Hi!\r\n\r\nFist of all, I really like the package, but I got stock. How is it possible to pass values from the state dinamycally to validators? (If it is possible)\r\n\r\nWhat I was trying to achieve is passing min, max value to between:\r\n\r\nSimplified example: \r\n`export default {\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tamount : 1,\r\n\t\t\tmin : 100,\r\n\t\t\tmax : 10000\r\n\t\t}\r\n\t},\r\n\tvalidations : {\r\n\t\tamount : {\r\n\t\t\trequired,\r\n\t\t\tbetween : between(this.min, this.max)\r\n\t\t}\r\n\t}\r\n}`\r\n\r\nBut \"this\" seems to be undefined here, because I keep getting \"Cannot read property 'min' of undefined\" error. How could I solve this issue?\r\n\r\n(Min and max value would change depending on other conditions)\r\n\r\nThanks!"}}
{"actor":{"display_login":"balazscsintalan"}}