Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add handling to update_user_by_id to allow setting enterprise to 'null' to roll users off enterprise #203

Closed
wants to merge 1 commit into from

Conversation

Djones4822
Copy link

Added handling to the update_user_by_id to allow the string "null" for enterprise to properly clear the enterprise as per the api documentation. I'm unsure where else this pattern may exist, but it seems that the sdk generally does not allow users to "clear" values since the serialize method always filters out values set to None. This PR only addresses this one use case through direct handling of the enterprise request body parameter.

@CLAassistant
Copy link

CLAassistant commented Jun 25, 2024

CLA assistant check
All committers have signed the CLA.

@Djones4822 Djones4822 changed the title Fix update_user_by_id to allow setting enterprise to 'null' to clear fix: add handling to update_user_by_id to allow setting enterprise to 'null' to roll users off enterprise Jun 25, 2024
@arjankowski
Copy link

Hi @Djones4822
Thank you for your contribution, first by reporting the bug and then by creating a PR with the fix 🚀

However, we cannot merge this PR because the code in this repository is generated by our product codegen based on the API. Even if we merged this or any other PR modifying the code, these changes would be overwritten the next time the generator is run.

To address the issue correctly, we need to make changes to our code generator to support nullable fields globally. Nevertheless, we appreciate the inspiration, it will certainly be useful 👍

Regards,
Artur

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants