{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/705","labels_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/705/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/705/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/705/events","html_url":"https://github.com/swagger-api/swagger-editor/issues/705","id":114032670,"number":705,"title":"Definitions with property name 'default'  cause 'a.indexOf is not a function' error","user":{"login":"kiftio","id":15106863,"avatar_url":"https://avatars.githubusercontent.com/u/15106863?v=3","gravatar_id":"","url":"https://api.github.com/users/kiftio","html_url":"https://github.com/kiftio","followers_url":"https://api.github.com/users/kiftio/followers","following_url":"https://api.github.com/users/kiftio/following{/other_user}","gists_url":"https://api.github.com/users/kiftio/gists{/gist_id}","starred_url":"https://api.github.com/users/kiftio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiftio/subscriptions","organizations_url":"https://api.github.com/users/kiftio/orgs","repos_url":"https://api.github.com/users/kiftio/repos","events_url":"https://api.github.com/users/kiftio/events{/privacy}","received_events_url":"https://api.github.com/users/kiftio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-29T11:43:01Z","updated_at":"2015-12-21T14:01:28Z","closed_at":null,"body":"Properties named default in definitions result in the following error. \r\n\r\nObject\r\nmessage:  \"a.indexOf is not a function\"\r\ncode:  \"ERROR_THROWN_BY_SWAY_CODE:undefined\"\r\nlevel: 900\r\ntype:  \"Unknown Error\"\r\ndescription:  \"a.indexOf is not a function\"\r\n\r\n---------------------------------------------\r\nE.g. with the following yaml:\r\n\r\nswagger:&nbsp;'2.0'\r\ninfo:\r\n&nbsp;&nbsp;version:&nbsp;0.0.0\r\n&nbsp;&nbsp;title:&nbsp;'entities'\r\npaths:\r\n&nbsp;&nbsp;/entities:\r\n&nbsp;&nbsp;&nbsp;&nbsp;get:\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;description:&nbsp;|\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Some&nbsp;description\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parameters:\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;name:&nbsp;entities\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in:&nbsp;body\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;description:&nbsp;entities\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;required:&nbsp;true\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;schema:\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type:&nbsp;array\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ref:&nbsp;'#/definitions/entity'\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;responses:\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'200':\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;description:&nbsp;Successful&nbsp;response\r\n\r\ndefinitions:\r\n&nbsp;&nbsp;entity:\r\n&nbsp;&nbsp;&nbsp;&nbsp;properties:\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id:\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type:&nbsp;string\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;description:&nbsp;Unique&nbsp;identifier&nbsp;representing&nbsp;an&nbsp;entity\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**default**:\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type:&nbsp;string\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;description:&nbsp;true&nbsp;or&nbsp;false.\r\n\r\n---------------------------------------------\r\n\r\nChanging the name from default allows the document to render correctly.\r\n\r\nI'm trying to document an xml request body which is something like:\r\n\r\n\\<entity\\>\r\n&nbsp;&nbsp;&nbsp;&nbsp;\\<id\\>123\\</id\\>\r\n&nbsp;&nbsp;&nbsp;&nbsp;\\<default\\>true\\</default\\>\r\n\\</entity\\>\r\n\r\nPerhaps some form of escaping is needed?"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/comments/166311466","html_url":"https://github.com/swagger-api/swagger-editor/issues/705#issuecomment-166311466","issue_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/705","id":166311466,"user":{"login":"jamesbennet","id":2697875,"avatar_url":"https://avatars.githubusercontent.com/u/2697875?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesbennet","html_url":"https://github.com/jamesbennet","followers_url":"https://api.github.com/users/jamesbennet/followers","following_url":"https://api.github.com/users/jamesbennet/following{/other_user}","gists_url":"https://api.github.com/users/jamesbennet/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesbennet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesbennet/subscriptions","organizations_url":"https://api.github.com/users/jamesbennet/orgs","repos_url":"https://api.github.com/users/jamesbennet/repos","events_url":"https://api.github.com/users/jamesbennet/events{/privacy}","received_events_url":"https://api.github.com/users/jamesbennet/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T14:01:28Z","updated_at":"2015-12-21T14:01:28Z","body":"Hello!\n\n \n\nNew message, please read <http://phanmemoto.com/indeed.php?al>\n\n \n\njames@james-bennet.com\n\n"}}