{"action":"created","issue":{"url":"https://api.github.com/repos/yyx990803/vue/issues/1000","labels_url":"https://api.github.com/repos/yyx990803/vue/issues/1000/labels{/name}","comments_url":"https://api.github.com/repos/yyx990803/vue/issues/1000/comments","events_url":"https://api.github.com/repos/yyx990803/vue/issues/1000/events","html_url":"https://github.com/yyx990803/vue/issues/1000","id":92683985,"number":1000,"title":"allowing camel-case props","user":{"login":"mark-hahn","id":811455,"avatar_url":"https://avatars.githubusercontent.com/u/811455?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-hahn","html_url":"https://github.com/mark-hahn","followers_url":"https://api.github.com/users/mark-hahn/followers","following_url":"https://api.github.com/users/mark-hahn/following{/other_user}","gists_url":"https://api.github.com/users/mark-hahn/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-hahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-hahn/subscriptions","organizations_url":"https://api.github.com/users/mark-hahn/orgs","repos_url":"https://api.github.com/users/mark-hahn/repos","events_url":"https://api.github.com/users/mark-hahn/events{/privacy}","received_events_url":"https://api.github.com/users/mark-hahn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yyx990803/vue/labels/suggestion","name":"suggestion","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-02T16:53:38Z","updated_at":"2015-07-03T13:55:24Z","closed_at":null,"body":"Wouldn't this ...\r\n\r\n```\r\nprops: {\r\n  'prop-a': String, // type check constructor\r\n  'prop-b': null, // accept any type\r\n  'prop-c': { // object descriptor\r\n    type: Number,\r\n    required: true,\r\n    default: 100 // new: default value\r\n  }\r\n}\r\n```\r\n\r\nMatch the other options more if it was ...\r\n\r\n```\r\nprops: {\r\n  propA: String, // type check constructor\r\n  propB: null, // accept any type\r\n  propC: { // object descriptor\r\n    type: Number,\r\n    required: true,\r\n    default: 100 // new: default value\r\n  }\r\n}\r\n```\r\n\r\nThe camel case would appear in the html as `prop-a` of course."},"comment":{"url":"https://api.github.com/repos/yyx990803/vue/issues/comments/118357612","html_url":"https://github.com/yyx990803/vue/issues/1000#issuecomment-118357612","issue_url":"https://api.github.com/repos/yyx990803/vue/issues/1000","id":118357612,"user":{"login":"young-steveo","id":497048,"avatar_url":"https://avatars.githubusercontent.com/u/497048?v=3","gravatar_id":"","url":"https://api.github.com/users/young-steveo","html_url":"https://github.com/young-steveo","followers_url":"https://api.github.com/users/young-steveo/followers","following_url":"https://api.github.com/users/young-steveo/following{/other_user}","gists_url":"https://api.github.com/users/young-steveo/gists{/gist_id}","starred_url":"https://api.github.com/users/young-steveo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/young-steveo/subscriptions","organizations_url":"https://api.github.com/users/young-steveo/orgs","repos_url":"https://api.github.com/users/young-steveo/repos","events_url":"https://api.github.com/users/young-steveo/events{/privacy}","received_events_url":"https://api.github.com/users/young-steveo/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T13:55:24Z","updated_at":"2015-07-03T13:55:24Z","body":":+1:  Converting camelcase props to hyphenated attributes is a pretty standard/accepted convention."}}