{"action":"opened","issue":{"url":"https://api.github.com/repos/Rebilly/ReDoc/issues/721","repository_url":"https://api.github.com/repos/Rebilly/ReDoc","labels_url":"https://api.github.com/repos/Rebilly/ReDoc/issues/721/labels{/name}","comments_url":"https://api.github.com/repos/Rebilly/ReDoc/issues/721/comments","events_url":"https://api.github.com/repos/Rebilly/ReDoc/issues/721/events","html_url":"https://github.com/Rebilly/ReDoc/issues/721","id":383055078,"node_id":"MDU6SXNzdWUzODMwNTUwNzg=","number":721,"title":"Object names not rendered if placed in a reference object","user":{"login":"cmeeren","id":7766733,"node_id":"MDQ6VXNlcjc3NjY3MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/7766733?v=4","gravatar_id":"","url":"https://api.github.com/users/cmeeren","html_url":"https://github.com/cmeeren","followers_url":"https://api.github.com/users/cmeeren/followers","following_url":"https://api.github.com/users/cmeeren/following{/other_user}","gists_url":"https://api.github.com/users/cmeeren/gists{/gist_id}","starred_url":"https://api.github.com/users/cmeeren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmeeren/subscriptions","organizations_url":"https://api.github.com/users/cmeeren/orgs","repos_url":"https://api.github.com/users/cmeeren/repos","events_url":"https://api.github.com/users/cmeeren/events{/privacy}","received_events_url":"https://api.github.com/users/cmeeren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-21T10:36:25Z","updated_at":"2018-11-21T10:36:25Z","closed_at":null,"author_association":"NONE","body":"Consider the following definition:\r\n\r\n```yaml\r\ncomponents:\r\n  schemas:\r\n\r\n    Errors:\r\n\r\n      Error1:\r\n        properties:\r\n          foo:\r\n            type: string\r\n    \r\n    Error2:\r\n      properties:\r\n        bar:\r\n            type: string\r\n    \r\n    AllErrors:\r\n      oneOf:\r\n        - $ref: '#/components/schemas/Errors/Error1'\r\n        - $ref: '#/components/schemas/Error2'\r\n\r\n```\r\n\r\nAs you can see, `Error1` is placed inside a reference object `Errors`. This is AFAIK [valid per the OpenAPI specification](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#components-object). However, the `oneOf` selector only renders the name for `Error2` and shows `object` instead of `Error1`:\r\n\r\n![image](https://user-images.githubusercontent.com/7766733/48835909-ac2d1580-ed81-11e8-8194-1f2bbf37a92a.png)\r\n"}}
{"actor":{"display_login":"cmeeren"}}