{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/powerbi-models/issues/16","repository_url":"https://api.github.com/repos/Microsoft/powerbi-models","labels_url":"https://api.github.com/repos/Microsoft/powerbi-models/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/powerbi-models/issues/16/comments","events_url":"https://api.github.com/repos/Microsoft/powerbi-models/issues/16/events","html_url":"https://github.com/Microsoft/powerbi-models/issues/16","id":175858607,"number":16,"title":"validateReportLoad incorrectly returns schema errors for valid filters","user":{"login":"mattmazzola","id":2856501,"avatar_url":"https://avatars.githubusercontent.com/u/2856501?v=3","gravatar_id":"","url":"https://api.github.com/users/mattmazzola","html_url":"https://github.com/mattmazzola","followers_url":"https://api.github.com/users/mattmazzola/followers","following_url":"https://api.github.com/users/mattmazzola/following{/other_user}","gists_url":"https://api.github.com/users/mattmazzola/gists{/gist_id}","starred_url":"https://api.github.com/users/mattmazzola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattmazzola/subscriptions","organizations_url":"https://api.github.com/users/mattmazzola/orgs","repos_url":"https://api.github.com/users/mattmazzola/repos","events_url":"https://api.github.com/users/mattmazzola/events{/privacy}","received_events_url":"https://api.github.com/users/mattmazzola/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/powerbi-models/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":{"login":"mattmazzola","id":2856501,"avatar_url":"https://avatars.githubusercontent.com/u/2856501?v=3","gravatar_id":"","url":"https://api.github.com/users/mattmazzola","html_url":"https://github.com/mattmazzola","followers_url":"https://api.github.com/users/mattmazzola/followers","following_url":"https://api.github.com/users/mattmazzola/following{/other_user}","gists_url":"https://api.github.com/users/mattmazzola/gists{/gist_id}","starred_url":"https://api.github.com/users/mattmazzola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattmazzola/subscriptions","organizations_url":"https://api.github.com/users/mattmazzola/orgs","repos_url":"https://api.github.com/users/mattmazzola/repos","events_url":"https://api.github.com/users/mattmazzola/events{/privacy}","received_events_url":"https://api.github.com/users/mattmazzola/received_events","type":"User","site_admin":false},"assignees":[{"login":"mattmazzola","id":2856501,"avatar_url":"https://avatars.githubusercontent.com/u/2856501?v=3","gravatar_id":"","url":"https://api.github.com/users/mattmazzola","html_url":"https://github.com/mattmazzola","followers_url":"https://api.github.com/users/mattmazzola/followers","following_url":"https://api.github.com/users/mattmazzola/following{/other_user}","gists_url":"https://api.github.com/users/mattmazzola/gists{/gist_id}","starred_url":"https://api.github.com/users/mattmazzola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattmazzola/subscriptions","organizations_url":"https://api.github.com/users/mattmazzola/orgs","repos_url":"https://api.github.com/users/mattmazzola/repos","events_url":"https://api.github.com/users/mattmazzola/events{/privacy}","received_events_url":"https://api.github.com/users/mattmazzola/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-09-08T20:40:10Z","updated_at":"2016-09-09T19:34:56Z","closed_at":null,"body":"`models.validateReportLoad` is incorrect returning schema errors related to the `filters` property even when it contains valid basic or advanced filters.\r\n\r\n**Steps to reproduce:**\r\n```\r\nvar pbi = window['powerbi-client'];\r\nvar basicFilter = new pbi.models.BasicFilter({ table: \"fakeTable\", column: \"fakeColumn\" }, \"In\", [\"A\"]);\r\nvar basicFilterJson = basicFilter.toJSON();\r\nvar loadConfig = { id: \"fakeId\", accessToken: \"fakeToken\", filters: [basicFilterJson] };\r\npbi.models.validateReportLoad(loadConfig);\r\n```\r\n\r\n**Expected:**\r\nShould return undefined indicating no errors, and load configuration is valid.\r\n\r\n**Actual:**\r\nReturns errors:\r\n```\r\n[\r\n  {\r\n    \"message\": \"filters is invalid. Not meeting type constraint\"\r\n  },\r\n  {\r\n    \"message\": \"filters is invalid. Not meeting type constraint\"\r\n  },\r\n  {\r\n    \"message\": \"filters property is invalid\"\r\n  }\r\n]\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/powerbi-models/issues/comments/246016522","html_url":"https://github.com/Microsoft/powerbi-models/issues/16#issuecomment-246016522","issue_url":"https://api.github.com/repos/Microsoft/powerbi-models/issues/16","id":246016522,"user":{"login":"mschulz531","id":10407742,"avatar_url":"https://avatars.githubusercontent.com/u/10407742?v=3","gravatar_id":"","url":"https://api.github.com/users/mschulz531","html_url":"https://github.com/mschulz531","followers_url":"https://api.github.com/users/mschulz531/followers","following_url":"https://api.github.com/users/mschulz531/following{/other_user}","gists_url":"https://api.github.com/users/mschulz531/gists{/gist_id}","starred_url":"https://api.github.com/users/mschulz531/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mschulz531/subscriptions","organizations_url":"https://api.github.com/users/mschulz531/orgs","repos_url":"https://api.github.com/users/mschulz531/repos","events_url":"https://api.github.com/users/mschulz531/events{/privacy}","received_events_url":"https://api.github.com/users/mschulz531/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T19:34:56Z","updated_at":"2016-09-09T19:34:56Z","body":"Matt, thanks for the quick turnaround on this one.\r\nHow do I get the fix? Download a new version of powerbi.js?\r\n"}}
{"actor":{"display_login":"mschulz531"}}