{"action":"created","issue":{"url":"https://api.github.com/repos/wework/speccy/issues/119","repository_url":"https://api.github.com/repos/wework/speccy","labels_url":"https://api.github.com/repos/wework/speccy/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/wework/speccy/issues/119/comments","events_url":"https://api.github.com/repos/wework/speccy/issues/119/events","html_url":"https://github.com/wework/speccy/issues/119","id":348873345,"node_id":"MDU6SXNzdWUzNDg4NzMzNDU=","number":119,"title":"bug: anyOf in schemas are not resolved","user":{"login":"Shockolate","id":6685146,"node_id":"MDQ6VXNlcjY2ODUxNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/6685146?v=4","gravatar_id":"","url":"https://api.github.com/users/Shockolate","html_url":"https://github.com/Shockolate","followers_url":"https://api.github.com/users/Shockolate/followers","following_url":"https://api.github.com/users/Shockolate/following{/other_user}","gists_url":"https://api.github.com/users/Shockolate/gists{/gist_id}","starred_url":"https://api.github.com/users/Shockolate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shockolate/subscriptions","organizations_url":"https://api.github.com/users/Shockolate/orgs","repos_url":"https://api.github.com/users/Shockolate/repos","events_url":"https://api.github.com/users/Shockolate/events{/privacy}","received_events_url":"https://api.github.com/users/Shockolate/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-08-08T20:08:23Z","updated_at":"2018-08-08T21:06:27Z","closed_at":"2018-08-08T20:59:22Z","author_association":"NONE","body":"## Detailed description\r\nWhen given a Schema Object where the `type` field is within an `anyOf`, the linter reports an error.\r\n\r\nConsider the schema:\r\n```\r\ncomponents:\r\n  schemas:\r\n    AnyOfExample:\r\n      type: object\r\n      properties:\r\n        intOrFloatProperty:\r\n          anyOf:\r\n            - type: number\r\n               format: float\r\n            - type: integer\r\n               format: int32\r\n      required:\r\n        - intOrFloatProperty\r\n```\r\n\r\nThe linter reports: \r\n```\r\nexpected Object {\r\n  anyOf: Array [\r\n    Object { type: 'number', format: 'float' },\r\n    Object { type: 'integer', format: 'int32' }\r\n  ],\r\n  ... snip ...\r\n} to have property type\r\n```\r\n\r\n\r\n## Context\r\n\r\n`anyOf` is an important aspect of JSON Schema, which OAS has adopted. It's a valid part of the specification and should be supported in linters.\r\n\r\n## Your environment\r\n\r\n* Node Version: 8.11.3\r\n* macOS 10.13.6"},"comment":{"url":"https://api.github.com/repos/wework/speccy/issues/comments/411552363","html_url":"https://github.com/wework/speccy/issues/119#issuecomment-411552363","issue_url":"https://api.github.com/repos/wework/speccy/issues/119","id":411552363,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTU1MjM2Mw==","user":{"login":"Shockolate","id":6685146,"node_id":"MDQ6VXNlcjY2ODUxNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/6685146?v=4","gravatar_id":"","url":"https://api.github.com/users/Shockolate","html_url":"https://github.com/Shockolate","followers_url":"https://api.github.com/users/Shockolate/followers","following_url":"https://api.github.com/users/Shockolate/following{/other_user}","gists_url":"https://api.github.com/users/Shockolate/gists{/gist_id}","starred_url":"https://api.github.com/users/Shockolate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shockolate/subscriptions","organizations_url":"https://api.github.com/users/Shockolate/orgs","repos_url":"https://api.github.com/users/Shockolate/repos","events_url":"https://api.github.com/users/Shockolate/events{/privacy}","received_events_url":"https://api.github.com/users/Shockolate/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T21:06:27Z","updated_at":"2018-08-08T21:06:27Z","author_association":"NONE","body":"Thank you for your attention, @philsturgeon !\r\nI'll watch that issue"}}
{"actor":{"display_login":"Shockolate"}}