{"action":"opened","issue":{"url":"https://api.github.com/repos/marshmallow-code/apispec/issues/46","labels_url":"https://api.github.com/repos/marshmallow-code/apispec/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/marshmallow-code/apispec/issues/46/comments","events_url":"https://api.github.com/repos/marshmallow-code/apispec/issues/46/events","html_url":"https://github.com/marshmallow-code/apispec/issues/46","id":129148101,"number":46,"title":"discriminator support?","user":{"login":"fingon","id":1126063,"avatar_url":"https://avatars.githubusercontent.com/u/1126063?v=3","gravatar_id":"","url":"https://api.github.com/users/fingon","html_url":"https://github.com/fingon","followers_url":"https://api.github.com/users/fingon/followers","following_url":"https://api.github.com/users/fingon/following{/other_user}","gists_url":"https://api.github.com/users/fingon/gists{/gist_id}","starred_url":"https://api.github.com/users/fingon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fingon/subscriptions","organizations_url":"https://api.github.com/users/fingon/orgs","repos_url":"https://api.github.com/users/fingon/repos","events_url":"https://api.github.com/users/fingon/events{/privacy}","received_events_url":"https://api.github.com/users/fingon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-27T13:44:48Z","updated_at":"2016-01-27T13:44:48Z","closed_at":null,"body":"Swagger 2.0 has 'discriminator' field, which is essentially used to choose the schema to use based on contents of the field. At least apispec 0.6 does not have this (nor does actually marshmallow itself, +- marshmallow-polyfield which is similar but helps choose type of field instead of the whole object's schema).\r\n\r\nAny plans on this?"}}