{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/281","labels_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/281/comments","events_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/281/events","html_url":"https://github.com/ruby-json-schema/json-schema/issues/281","id":121578968,"number":281,"title":"typeOf array doesn't validate references","user":{"login":"thewatts","id":1141717,"avatar_url":"https://avatars.githubusercontent.com/u/1141717?v=3","gravatar_id":"","url":"https://api.github.com/users/thewatts","html_url":"https://github.com/thewatts","followers_url":"https://api.github.com/users/thewatts/followers","following_url":"https://api.github.com/users/thewatts/following{/other_user}","gists_url":"https://api.github.com/users/thewatts/gists{/gist_id}","starred_url":"https://api.github.com/users/thewatts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewatts/subscriptions","organizations_url":"https://api.github.com/users/thewatts/orgs","repos_url":"https://api.github.com/users/thewatts/repos","events_url":"https://api.github.com/users/thewatts/events{/privacy}","received_events_url":"https://api.github.com/users/thewatts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-10T21:16:10Z","updated_at":"2015-12-22T08:55:36Z","closed_at":null,"body":"#### Payload:\r\n```json\r\n{\r\n  \"event\": {\r\n    \"id\": 1,\r\n    \"name\": \"Block Party\"\r\n  }\r\n}\r\n```\r\n\r\n#### Example Schema:\r\n```json\r\n// base\r\n{\r\n  \"type\": \"object\",\r\n  \"required\": [\r\n    \"event\"\r\n  ],\r\n  \"properties\": {\r\n    \"event\": {\r\n      \"typeOf\": [\r\n        {\"type\": \"null\"},\r\n        {\"$ref\": \"event-simple.json\"}\r\n      ]\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n```json\r\n// event-simple.json\r\n{\r\n  \"type\":\"object\",\r\n  \"required\":[\r\n    \"id\",\r\n    \"name\",\r\n    \"starts_at\"\r\n  ],\r\n  \"properties\": {\r\n    \"id\": { \"type\": \"fixnum\" },\r\n    \"name\": { \"type\": \"string\" },\r\n    \"starts_at\": { \"type\": \"string\" }\r\n  }\r\n}\r\n```\r\n\r\nThe reference `event-simple.json` isn't validated against with the json payload.\r\n(( using strict mode ))\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/comments/166557641","html_url":"https://github.com/ruby-json-schema/json-schema/issues/281#issuecomment-166557641","issue_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/281","id":166557641,"user":{"login":"iainbeeston","id":111963,"avatar_url":"https://avatars.githubusercontent.com/u/111963?v=3","gravatar_id":"","url":"https://api.github.com/users/iainbeeston","html_url":"https://github.com/iainbeeston","followers_url":"https://api.github.com/users/iainbeeston/followers","following_url":"https://api.github.com/users/iainbeeston/following{/other_user}","gists_url":"https://api.github.com/users/iainbeeston/gists{/gist_id}","starred_url":"https://api.github.com/users/iainbeeston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iainbeeston/subscriptions","organizations_url":"https://api.github.com/users/iainbeeston/orgs","repos_url":"https://api.github.com/users/iainbeeston/repos","events_url":"https://api.github.com/users/iainbeeston/events{/privacy}","received_events_url":"https://api.github.com/users/iainbeeston/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T08:55:36Z","updated_at":"2015-12-22T08:55:36Z","body":"I'm a bit confused by what you're doing in your schema, did you mean `allOf` instead of `typeOf`? (So far as I'm aware, `typeOf` isn't a recognised property in json schema)"}}