Title: Serialization of empty field can create API validation error · Issue #99 · zitadel/client-python · GitHub
Open Graph Title: Serialization of empty field can create API validation error · Issue #99 · zitadel/client-python
X Title: Serialization of empty field can create API validation error · Issue #99 · zitadel/client-python
Description: client-python/zitadel_client/models/user_service_human.py Lines 81 to 83 in b89a4b8 # override the default output from pydantic by calling `to_dict()` of email if self.email: _dict['email'] = self.email.to_dict() This if checks whether s...
Open Graph Description: client-python/zitadel_client/models/user_service_human.py Lines 81 to 83 in b89a4b8 # override the default output from pydantic by calling `to_dict()` of email if self.email: _dict['email'] = self....
X Description: client-python/zitadel_client/models/user_service_human.py Lines 81 to 83 in b89a4b8 # override the default output from pydantic by calling `to_dict()` of email if self.email: _dict['email']...
Opengraph URL: https://github.com/zitadel/client-python/issues/99
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Serialization of empty field can create API validation error","articleBody":"https://github.com/zitadel/client-python/blob/b89a4b879d84766addbc19d7838f29265a6e5edf/zitadel_client/models/user_service_human.py#L81-L83\n\nThis `if` checks whether `self.email` is `None`, but it does not handle the case where `self.email` is a `UserServiceSetHumanEmail(mail=None)`.\n\nAs a result, the serialization produces `email: {}` in the request body, and the Zitadel API responds with a 400 error because it expects `email` to be a valid string between 1 and 200 characters, even though it is `null` and should remain unchanged.\n","author":{"url":"https://github.com/d0rianb","@type":"Person","name":"d0rianb"},"datePublished":"2026-02-04T18:15:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/99/client-python/issues/99"}
| 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:b68cba35-c13f-303d-b982-12456330c983 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D502:3047D:1A258A:21DAC3:698D3775 |
| html-safe-nonce | 0608f2780a5afe70ad0ad2d13939abd582fc79a4b64f2ab45889462c99b9dac7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTAyOjMwNDdEOjFBMjU4QToyMURBQzM6Njk4RDM3NzUiLCJ2aXNpdG9yX2lkIjoiNTk5NzYwMTU3MDg2MTM2MTgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cb0e2f932506c34c3aacf6559198f541e6944c905f26d10304516a60569151f4 |
| hovercard-subject-tag | issue:3897809136 |
| 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/zitadel/client-python/99/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eb7c10aefc2ec3c5977627ef351b257affe55a1b469f21a8029f3c34b246d536/zitadel/client-python/issues/99 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb7c10aefc2ec3c5977627ef351b257affe55a1b469f21a8029f3c34b246d536/zitadel/client-python/issues/99 |
| og:image:alt | client-python/zitadel_client/models/user_service_human.py Lines 81 to 83 in b89a4b8 # override the default output from pydantic by calling `to_dict()` of email if self.email: _dict['email'] = self.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | d0rianb |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| turbo-cache-control | no-preview |
| go-import | github.com/zitadel/client-python git https://github.com/zitadel/client-python.git |
| octolytics-dimension-user_id | 70011121 |
| octolytics-dimension-user_login | zitadel |
| octolytics-dimension-repository_id | 954586907 |
| octolytics-dimension-repository_nwo | zitadel/client-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 954586907 |
| octolytics-dimension-repository_network_root_nwo | zitadel/client-python |
| 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 | bc912d4349851e5f32c76bbb213754e40947d7a6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width