Serialization of empty field can create API validation error
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 52/100
Research direction
Start at models/user_service_human.py lines 81-83 and inspect how UserServiceSetHumanEmail(mail=None) is serialized. Reproduce the request-body behavior with a null email, then verify that unchanged values are not emitted as email: {} and no longer trigger the API validation error.
Written by the indexing model from the issue text.
Description
This if checks whether self.email is None, but it does not handle the case where self.email is a UserServiceSetHumanEmail(mail=None).
As 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.
- Dominant language
- Python
- Stars
- 16
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from zitadel/client-python
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
zitadel/client-python#125 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
zitadel/client-python#140 ·
-
Release SDK for V5 Open
zitadel/client-python#80 · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
zitadel/client-python#78 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
zitadel/client-python#66 · 1 comment · 4 reactions ·
All issues in zitadel/client-python
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·