Title: Recursive reference · Issue #347 · openapi-generators/openapi-python-client · GitHub
Open Graph Title: Recursive reference · Issue #347 · openapi-generators/openapi-python-client
X Title: Recursive reference · Issue #347 · openapi-generators/openapi-python-client
Description: Describe the bug So... I have this: class FolderChildren(BaseModel): """ Folder schema to output from GET folders/{folder_id}/children method. """ id: int name: str n_docs: int children: Optional[List["FolderChildren"]] = None FolderChil...
Open Graph Description: Describe the bug So... I have this: class FolderChildren(BaseModel): """ Folder schema to output from GET folders/{folder_id}/children method. """ id: int name: str n_docs: int children: Optional[L...
X Description: Describe the bug So... I have this: class FolderChildren(BaseModel): """ Folder schema to output from GET folders/{folder_id}/children method. """ id: int name: str n_...
Opengraph URL: https://github.com/openapi-generators/openapi-python-client/issues/347
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Recursive reference","articleBody":"**Describe the bug**\r\n\r\nSo... I have this:\r\n```python\r\nclass FolderChildren(BaseModel):\r\n \"\"\"\r\n Folder schema to output from GET folders/{folder_id}/children method.\r\n \"\"\"\r\n\r\n id: int\r\n name: str\r\n n_docs: int\r\n children: Optional[List[\"FolderChildren\"]] = None\r\n\r\nFolderChildren.update_forward_refs()\r\n```\r\nAnd the error is:\r\n```bash\r\nWarning(s) encountered while generating. Client was generated, but some pieces may be missing\r\n\r\nWARNING parsing GET /api/v1/folders/{folder_id}/children/ within hierarchy.\r\n\r\nCannot parse response for status code 200, response will be ommitted from generated client\r\n\r\nReference(ref='#/components/schemas/FolderChildren')\r\n\r\nUnable to parse this part of your OpenAPI document: \r\n\r\ninvalid data in items of array children\r\n\r\nReference(ref='#/components/schemas/FolderChildren')\r\n```\r\n\r\nI believe the problem is the self-reference. Am I wrong?\r\n\r\n\r\n**Expected behavior**\r\nNot having the error message.\r\n\r\n**OpenAPI Spec File**\r\nCan't give you this.\r\n\r\n**Desktop (please complete the following information):**\r\n - OS: Ubuntu 20.04\r\n - Python Version: 3.6.9\r\n - openapi-python-client version 0.8.0\r\n \r\n","author":{"url":"https://github.com/Kludex","@type":"Person","name":"Kludex"},"datePublished":"2021-03-12T17:02:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/347/openapi-python-client/issues/347"}
| 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:6bc77a69-e660-c5f1-bfb8-7d508605c2c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C318:114D9A:38231B:4D9D6A:698100FF |
| html-safe-nonce | da7179bcb0ad20d7ef883a05a320b9a50f8a32fa328de08d36d4726c81434d86 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzE4OjExNEQ5QTozODIzMUI6NEQ5RDZBOjY5ODEwMEZGIiwidmlzaXRvcl9pZCI6IjIwNzEzMDg0ODM0NzAzNjA4MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fefc4efe3ce2f5c56b44f4be178cc4999b8c38f69cea113c184d320892621297 |
| hovercard-subject-tag | issue:830299368 |
| 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/347/issue_layout |
| twitter:image | https://opengraph.githubassets.com/51d5d1966796c2802406777b388a16dd0c671e0def249bf65cf0f4f1a7e21902/openapi-generators/openapi-python-client/issues/347 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/51d5d1966796c2802406777b388a16dd0c671e0def249bf65cf0f4f1a7e21902/openapi-generators/openapi-python-client/issues/347 |
| og:image:alt | Describe the bug So... I have this: class FolderChildren(BaseModel): """ Folder schema to output from GET folders/{folder_id}/children method. """ id: int name: str n_docs: int children: Optional[L... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Kludex |
| 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