{"action":"created","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/458","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/458/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/458/events","html_url":"https://github.com/stylelint/stylelint/pull/458","id":113968227,"number":458,"title":"Add possibleArray to validateOptions","user":{"login":"davidtheclark","id":628431,"avatar_url":"https://avatars.githubusercontent.com/u/628431?v=3","gravatar_id":"","url":"https://api.github.com/users/davidtheclark","html_url":"https://github.com/davidtheclark","followers_url":"https://api.github.com/users/davidtheclark/followers","following_url":"https://api.github.com/users/davidtheclark/following{/other_user}","gists_url":"https://api.github.com/users/davidtheclark/gists{/gist_id}","starred_url":"https://api.github.com/users/davidtheclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidtheclark/subscriptions","organizations_url":"https://api.github.com/users/davidtheclark/orgs","repos_url":"https://api.github.com/users/davidtheclark/repos","events_url":"https://api.github.com/users/davidtheclark/events{/privacy}","received_events_url":"https://api.github.com/users/davidtheclark/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stylelint/stylelint/labels/PR:%20review%20needed","name":"PR: review needed","color":"FFE600"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T02:57:35Z","updated_at":"2015-10-29T13:39:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stylelint/stylelint/pulls/458","html_url":"https://github.com/stylelint/stylelint/pull/458","diff_url":"https://github.com/stylelint/stylelint/pull/458.diff","patch_url":"https://github.com/stylelint/stylelint/pull/458.patch"},"body":"This is an effort to address #449, so that issue doesn't hold up releases.\r\n\r\nI've made it so that `validateOptions` objects can be given a `possibleArray` property (in addition to the original `possible` property). If a `possibleArray` property is provided, the validator will complain if the actual option is not an array, and it will complain if any of the option array's items do not align with `possibleArray`'s value.\r\n\r\nI tried this out in function-whitelist to see if it worked, and it seemed to.\r\n\r\nThe next step would be to apply it to the other relevant rules listed in #449 and double-check that it gives users the feedback that they would need.\r\n\r\n@jeddy3 Any chance you could finish this one off?"},"comment":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/comments/152181930","html_url":"https://github.com/stylelint/stylelint/pull/458#issuecomment-152181930","issue_url":"https://api.github.com/repos/stylelint/stylelint/issues/458","id":152181930,"user":{"login":"davidtheclark","id":628431,"avatar_url":"https://avatars.githubusercontent.com/u/628431?v=3","gravatar_id":"","url":"https://api.github.com/users/davidtheclark","html_url":"https://github.com/davidtheclark","followers_url":"https://api.github.com/users/davidtheclark/followers","following_url":"https://api.github.com/users/davidtheclark/following{/other_user}","gists_url":"https://api.github.com/users/davidtheclark/gists{/gist_id}","starred_url":"https://api.github.com/users/davidtheclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidtheclark/subscriptions","organizations_url":"https://api.github.com/users/davidtheclark/orgs","repos_url":"https://api.github.com/users/davidtheclark/repos","events_url":"https://api.github.com/users/davidtheclark/events{/privacy}","received_events_url":"https://api.github.com/users/davidtheclark/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T13:39:14Z","updated_at":"2015-10-29T13:39:14Z","body":"Ugh ... realized that this work might not have been necessary: https://github.com/stylelint/stylelint/issues/449#issuecomment-152181632\r\n\r\nHold off on merging for discussion"}}