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

Add include_none_values ClassVar to JSONObject; apply to response-only classes #466

Conversation

lgarber-akamai
Copy link
Contributor

@lgarber-akamai lgarber-akamai commented Oct 14, 2024

📝 Description

This pull request adds a new include_none_values ClassVar to the JSONObject base class, which allows child classes to globally configure whether their fields should explicitly be included in their .dict outputs.

Additionally, this pull request enables this functionality on the response classes updated in #459, which should prevent a breaking change in the next release.

NOTE: This change has been validated against the ansible_linode lke_cluster_acl test.

✔️ How to Test

The following test steps assume you have pulled down this PR locally and run make install.

Unit Testing

make testunit

Integration Testing

make testint

@lgarber-akamai lgarber-akamai added the bugfix for any bug fixes in the changelog. label Oct 14, 2024
@lgarber-akamai lgarber-akamai requested a review from a team as a code owner October 14, 2024 18:25
@lgarber-akamai lgarber-akamai requested review from zliang-akamai, ezilber-akamai and yec-akamai and removed request for a team and zliang-akamai October 14, 2024 18:25
Copy link
Contributor

@yec-akamai yec-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix!

Copy link
Contributor

@ezilber-akamai ezilber-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit and integration tests are passing locally. Thanks for fixing this!

@lgarber-akamai lgarber-akamai merged commit 0139b51 into linode:dev Oct 14, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix for any bug fixes in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants