{"action":"created","issue":{"url":"https://api.github.com/repos/INCF/bids-validator/issues/322","repository_url":"https://api.github.com/repos/INCF/bids-validator","labels_url":"https://api.github.com/repos/INCF/bids-validator/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/INCF/bids-validator/issues/322/comments","events_url":"https://api.github.com/repos/INCF/bids-validator/issues/322/events","html_url":"https://github.com/INCF/bids-validator/issues/322","id":261598389,"number":322,"title":"toFixed is not a function","user":{"login":"chrisfilo","id":238759,"avatar_url":"https://avatars2.githubusercontent.com/u/238759?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisfilo","html_url":"https://github.com/chrisfilo","followers_url":"https://api.github.com/users/chrisfilo/followers","following_url":"https://api.github.com/users/chrisfilo/following{/other_user}","gists_url":"https://api.github.com/users/chrisfilo/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisfilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisfilo/subscriptions","organizations_url":"https://api.github.com/users/chrisfilo/orgs","repos_url":"https://api.github.com/users/chrisfilo/repos","events_url":"https://api.github.com/users/chrisfilo/events{/privacy}","received_events_url":"https://api.github.com/users/chrisfilo/received_events","type":"User","site_admin":false},"labels":[{"id":222513779,"url":"https://api.github.com/repos/INCF/bids-validator/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-29T10:25:37Z","updated_at":"2017-09-29T10:30:11Z","closed_at":null,"author_association":"OWNER","body":"```\r\nUncaught TypeError: g.RepetitionTime.toFixed is not a function\r\n    at t.exports (app.min.js? [sm]:14130)\r\n    at app.min.js? [sm]:13462\r\n    at FileReader.a.onloadend (app.min.js? [sm]:12028)\r\n```\r\n\r\nThis could be a regression of #245, but it looks slightly differently."},"comment":{"url":"https://api.github.com/repos/INCF/bids-validator/issues/comments/333091855","html_url":"https://github.com/INCF/bids-validator/issues/322#issuecomment-333091855","issue_url":"https://api.github.com/repos/INCF/bids-validator/issues/322","id":333091855,"user":{"login":"chrisfilo","id":238759,"avatar_url":"https://avatars2.githubusercontent.com/u/238759?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisfilo","html_url":"https://github.com/chrisfilo","followers_url":"https://api.github.com/users/chrisfilo/followers","following_url":"https://api.github.com/users/chrisfilo/following{/other_user}","gists_url":"https://api.github.com/users/chrisfilo/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisfilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisfilo/subscriptions","organizations_url":"https://api.github.com/users/chrisfilo/orgs","repos_url":"https://api.github.com/users/chrisfilo/repos","events_url":"https://api.github.com/users/chrisfilo/events{/privacy}","received_events_url":"https://api.github.com/users/chrisfilo/received_events","type":"User","site_admin":false},"created_at":"2017-09-29T10:30:11Z","updated_at":"2017-09-29T10:30:11Z","author_association":"OWNER","body":"This works:\r\n```\r\n{\r\n    \"RepetitionTime\": 2.0,\r\n    \"TaskName\": \"mixed-gambles task\",\r\n\t\"SliceTiming\": 1,\r\n\t\"EchoTime\": \"dsfsdfsd\"\r\n}\r\n```\r\nthis breaks\r\n```\r\n{\r\n    \"RepetitionTime\": \"2.0\",\r\n    \"TaskName\": \"mixed-gambles task\",\r\n\t\"SliceTiming\": 1,\r\n\t\"EchoTime\": \"dsfsdfsd\"\r\n}\r\n```\r\n\r\nTo fix this schema validation needs to be performed prior to reading any values (and assuming that RepetitionTime is a number not a string)."}}
{"actor":{"display_login":"chrisfilo"}}