Title: GitHub · Where software is built
Open Graph Title: openapi-generators/openapi-python-client
X Title: openapi-generators/openapi-python-client
Description: Generate modern Python clients from OpenAPI. Contribute to openapi-generators/openapi-python-client development by creating an account on GitHub.
Open Graph Description: Generate modern Python clients from OpenAPI. Contribute to openapi-generators/openapi-python-client development by creating an account on GitHub.
X Description: Generate modern Python clients from OpenAPI. Contribute to openapi-generators/openapi-python-client development by creating an account on GitHub.
Opengraph URL: https://github.com/openapi-generators/openapi-python-client
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Optional[datetime] field with value null/None gets isoparse'd","articleBody":"I have a field in my generated model like this:\r\n\r\n```timestamp: Union[Unset, datetime.datetime] = UNSET```\r\n\r\nMy API returns {\"timestamp\": null}, which then gets deserialized as None, and ends up in the else clause of this generated code:\r\n\r\n```\r\n if isinstance(_timestamp, Unset):\r\n timestamp = UNSET\r\n else:\r\n timestamp = isoparse(_timestamp)\r\n```\r\n\r\n.. when then ends up raising in dateutil's isoparser.py.\r\n\r\nI'm using 0.10.1 and saw https://github.com/openapi-generators/openapi-python-client/issues/381 and https://github.com/openapi-generators/openapi-python-client/pull/420 - wondering if `datetime.datetime` wasn't fixed with that issue or if I'm doing something wrong?\r\n","author":{"url":"https://github.com/cfal","@type":"Person","name":"cfal"},"datePublished":"2021-07-21T18:10:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/456/openapi-python-client/issues/456"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:5b693115-1a9d-eecf-823c-0fd9c8d3533a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A488:21227D:64BAEC5:84EB926:69808F17 |
| html-safe-nonce | 4409c11037c2c1075347a1604763ccece235855b9e2b160a075b23f2762f0bb5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDg4OjIxMjI3RDo2NEJBRUM1Ojg0RUI5MjY6Njk4MDhGMTciLCJ2aXNpdG9yX2lkIjoiODI5MzM3MjUwOTM0NTA1ODU4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b4f927920d6724d97e96e095464d26058543f5577f6cdd251fb527f08b5e1bf6 |
| hovercard-subject-tag | repository:240776275 |
| 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/openapi-generators/openapi-python-client/issues/456 |
| twitter:image | https://opengraph.githubassets.com/958d46af1d9a6fd72088239df3f49d3d4afa6c0c13df7c86a0c7b008ffd066c7/openapi-generators/openapi-python-client |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/958d46af1d9a6fd72088239df3f49d3d4afa6c0c13df7c86a0c7b008ffd066c7/openapi-generators/openapi-python-client |
| og:image:alt | Generate modern Python clients from OpenAPI. Contribute to openapi-generators/openapi-python-client development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 469777838102ab297ec4fcad28d2f2800ba15f98fafe1027761c30ba1171be52 |
| turbo-cache-control | no-cache |
| 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 | abd13d780acc53a8d052b86a5b6ac82b79676965 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width