Title: Support discriminator for polymorphic types and support oneOf · Issue #219 · openapi-generators/openapi-python-client · GitHub
Open Graph Title: Support discriminator for polymorphic types and support oneOf · Issue #219 · openapi-generators/openapi-python-client
X Title: Support discriminator for polymorphic types and support oneOf · Issue #219 · openapi-generators/openapi-python-client
Description: Is your feature request related to a problem? Please describe. When an endpoint returns oneOf several different classes, currently it returns an empty object. Sample component snippet: ReturnedObject: oneOf: - $ref: '#/components/schemas...
Open Graph Description: Is your feature request related to a problem? Please describe. When an endpoint returns oneOf several different classes, currently it returns an empty object. Sample component snippet: ReturnedObje...
X Description: Is your feature request related to a problem? Please describe. When an endpoint returns oneOf several different classes, currently it returns an empty object. Sample component snippet: ReturnedObje...
Opengraph URL: https://github.com/openapi-generators/openapi-python-client/issues/219
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support discriminator for polymorphic types and support oneOf","articleBody":"**Is your feature request related to a problem? Please describe.**\r\n\r\nWhen an endpoint returns `oneOf` several different classes, currently it returns an empty object. Sample component snippet:\r\n\r\n```yaml\r\n ReturnedObject:\r\n oneOf:\r\n - $ref: '#/components/schemas/PolymorphicType'\r\n - $ref: '#/components/schemas/AnotherPolymorphicType'\r\n```\r\n\r\n**Describe the solution you'd like**\r\n\r\nSupport [discriminators](https://swagger.io/docs/specification/data-models/inheritance-and-polymorphism/) to be able to deserialize polymorphic types.\r\n","author":{"url":"https://github.com/bowenwr","@type":"Person","name":"bowenwr"},"datePublished":"2020-10-16T14:29:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/219/openapi-python-client/issues/219"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:77a32ceb-35b5-daed-5ee1-b75aa0855c4f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5FA:E6F86:7F02A1:AF1042:69811A42 |
| html-safe-nonce | e9650028fc4123bfbd5bccda54590d768c8e9e5bbe81c2f3396729b41ca82780 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUZBOkU2Rjg2OjdGMDJBMTpBRjEwNDI6Njk4MTFBNDIiLCJ2aXNpdG9yX2lkIjoiODA4ODU1OTc0ODIyNTUwNTg1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4ff7ea466bdfc49e2f0710218c1c52e2bd0da8f935fb197c0df1f6ebe25744ca |
| hovercard-subject-tag | issue:723276154 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/openapi-generators/openapi-python-client/219/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f382251e05dc4f77cb9b99b2619644dd0feea39e7bd5bccf0afd51adf19c4588/openapi-generators/openapi-python-client/issues/219 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f382251e05dc4f77cb9b99b2619644dd0feea39e7bd5bccf0afd51adf19c4588/openapi-generators/openapi-python-client/issues/219 |
| og:image:alt | Is your feature request related to a problem? Please describe. When an endpoint returns oneOf several different classes, currently it returns an empty object. Sample component snippet: ReturnedObje... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bowenwr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 39fe8101494cbb823c09b619b68c80cd4d05ab7279997038dbe06bb91608abe1 |
| turbo-cache-control | no-preview |
| go-import | github.com/openapi-generators/openapi-python-client git https://github.com/openapi-generators/openapi-python-client.git |
| octolytics-dimension-user_id | 84925606 |
| octolytics-dimension-user_login | openapi-generators |
| octolytics-dimension-repository_id | 240776275 |
| octolytics-dimension-repository_nwo | openapi-generators/openapi-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 240776275 |
| octolytics-dimension-repository_network_root_nwo | openapi-generators/openapi-python-client |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d5b34a4e4898b066c629879feb4b184bc471d6a7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width