Title: allOf fails if it references a type that also uses allOf with just single item · Issue #1091 · openapi-generators/openapi-python-client · GitHub
Open Graph Title: allOf fails if it references a type that also uses allOf with just single item · Issue #1091 · openapi-generators/openapi-python-client
X Title: allOf fails if it references a type that also uses allOf with just single item · Issue #1091 · openapi-generators/openapi-python-client
Description: Describe the bug Conditions: Schema A is a type with any definition. Schema B contains only an allOf with a single element referencing Schema A. Schema C contains an allOf that 1. references Schema B and 2. adds a property. Expected beha...
Open Graph Description: Describe the bug Conditions: Schema A is a type with any definition. Schema B contains only an allOf with a single element referencing Schema A. Schema C contains an allOf that 1. references Schema...
X Description: Describe the bug Conditions: Schema A is a type with any definition. Schema B contains only an allOf with a single element referencing Schema A. Schema C contains an allOf that 1. references Schema...
Opengraph URL: https://github.com/openapi-generators/openapi-python-client/issues/1091
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"allOf fails if it references a type that also uses allOf with just single item","articleBody":"**Describe the bug**\r\n\r\nConditions:\r\n- Schema A is a type with any definition.\r\n- Schema B contains only an `allOf` with a single element referencing Schema A.\r\n- Schema C contains an `allOf` that 1. references Schema B and 2. adds a property.\r\n\r\nExpected behavior:\r\n- Spec is valid. Schema B should be treated as exactly equivalent to Schema A (in other words, C becomes an extension of A with an extra property).\r\n\r\nObserved behavior:\r\n- Parsing fails. Error message is \"Unable to process schema \u003cpath to schema C\u003e\".\r\n\r\n**OpenAPI Spec File**\r\nhttps://gist.github.com/eli-bl/8f5c7d1d872d9fda5379fa6370dab6a8\r\n\r\n**Desktop (please complete the following information):**\r\n- OS: macOS 14.5\r\n- Python Version: 3.8.15\r\n- openapi-python-client version 0.21.2\r\n","author":{"url":"https://github.com/eli-bl","@type":"Person","name":"eli-bl"},"datePublished":"2024-08-06T18:57:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1091/openapi-python-client/issues/1091"}
| 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:c510b878-a7e4-08c5-8fdb-5527977b7fb0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D59A:3523AF:AA5C85A:DB95644:697F168E |
| html-safe-nonce | 90aebe5231c6a6d7891386cd6207bfd18551bc8df51facd12c7921595c68b2b1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTlBOjM1MjNBRjpBQTVDODVBOkRCOTU2NDQ6Njk3RjE2OEUiLCJ2aXNpdG9yX2lkIjoiNzk0NzIyNDcyNjgzOTk1NzEzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b2b27ca86d868cd7e0059573f06978f65ba12480a24cdda0e4d6e60fef296ba2 |
| hovercard-subject-tag | issue:2451501596 |
| 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/1091/issue_layout |
| twitter:image | https://opengraph.githubassets.com/73461e9e5b6c703a819cb66795e94d3c41a135762805f42ea674caf5214f62ed/openapi-generators/openapi-python-client/issues/1091 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/73461e9e5b6c703a819cb66795e94d3c41a135762805f42ea674caf5214f62ed/openapi-generators/openapi-python-client/issues/1091 |
| og:image:alt | Describe the bug Conditions: Schema A is a type with any definition. Schema B contains only an allOf with a single element referencing Schema A. Schema C contains an allOf that 1. references Schema... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eli-bl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| 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 | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width