{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/9929","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/9929/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/9929/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/9929/events","html_url":"https://github.com/eslint/eslint/issues/9929","id":294113624,"node_id":"MDU6SXNzdWUyOTQxMTM2MjQ=","number":9929,"title":"Support the `default` JSON Schema keyword","user":{"login":"sindresorhus","id":170270,"node_id":"MDQ6VXNlcjE3MDI3MA==","avatar_url":"https://avatars1.githubusercontent.com/u/170270?v=4","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"labels":[{"id":82922548,"node_id":"MDU6TGFiZWw4MjkyMjU0OA==","url":"https://api.github.com/repos/eslint/eslint/labels/core","name":"core","color":"c7def8","default":false},{"id":255319420,"node_id":"MDU6TGFiZWwyNTUzMTk0MjA=","url":"https://api.github.com/repos/eslint/eslint/labels/evaluating","name":"evaluating","color":"fef2c0","default":false},{"id":253473350,"node_id":"MDU6TGFiZWwyNTM0NzMzNTA=","url":"https://api.github.com/repos/eslint/eslint/labels/feature","name":"feature","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-03T14:11:49Z","updated_at":"2018-09-12T17:38:40Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Would be nice to be able to specify default values for the rule options in the schema.\r\n\r\nSee: https://github.com/epoberezkin/ajv#assigning-defaults\r\n\r\nI think all you have to do is to set the `useDefaults: true` option in https://github.com/eslint/eslint/blob/2af94466fe8f87058fad4bd168958d2a7612a79d/lib/util/ajv.js#L18-L23"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/420735122","html_url":"https://github.com/eslint/eslint/issues/9929#issuecomment-420735122","issue_url":"https://api.github.com/repos/eslint/eslint/issues/9929","id":420735122,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDczNTEyMg==","user":{"login":"platinumazure","id":284282,"node_id":"MDQ6VXNlcjI4NDI4Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/284282?v=4","gravatar_id":"","url":"https://api.github.com/users/platinumazure","html_url":"https://github.com/platinumazure","followers_url":"https://api.github.com/users/platinumazure/followers","following_url":"https://api.github.com/users/platinumazure/following{/other_user}","gists_url":"https://api.github.com/users/platinumazure/gists{/gist_id}","starred_url":"https://api.github.com/users/platinumazure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/platinumazure/subscriptions","organizations_url":"https://api.github.com/users/platinumazure/orgs","repos_url":"https://api.github.com/users/platinumazure/repos","events_url":"https://api.github.com/users/platinumazure/events{/privacy}","received_events_url":"https://api.github.com/users/platinumazure/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T17:38:40Z","updated_at":"2018-09-12T17:38:40Z","author_association":"MEMBER","body":"@sindresorhus Sorry for letting this slide. Could you please provide an example of how this would benefit end users or plugin developers? E.g., would it somehow allow options to be automatically hydrated?\r\n\r\n-------\r\n\r\nAlso, going back to my earlier comments, I've thought about this some more and I think I remember that property names such as \"default\" tend to be in `properties` or `elements` objects within an object or array schema definition-- that is, default-as-a-keyword should be outside of those elements so there should be no collision. So I'm less concerned about a breaking change possibility here."}}
{"actor":{"display_login":"platinumazure"}}