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 skip_none parameter #601

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Add skip_none parameter #601

merged 1 commit into from
Oct 22, 2024

Conversation

yukinarit
Copy link
Owner

The skip_none attribute is an optional feature originally implemented to prevent null values from appearing in TOML serialized outputs. When set to True, any field in the class with a None value is excluded from the serialized output, ensuring that TOML files (or other formats) remain clean and free from null entries.

Closes #421

@yukinarit yukinarit added the enhancement New feature or request label Oct 20, 2024
Copy link

Please consider formatting your code according to the standards described here: https://github.com/yukinarit/pyserde/blob/main/CONTRIBUTING.md

The `skip_none` attribute is an optional feature originally
implemented to prevent null values from appearing in TOML
serialized outputs. When set to True, any field in the class with
a None value is excluded from the serialized output, ensuring that
TOML files (or other formats) remain clean and free from null
entries.

Closes #421
@yukinarit yukinarit marked this pull request as ready for review October 22, 2024 02:10
@yukinarit yukinarit merged commit f93cafa into main Oct 22, 2024
7 checks passed
@yukinarit yukinarit deleted the add-skip-none branch October 22, 2024 02:11
github-actions bot pushed a commit that referenced this pull request Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Omit the corresponding key/value pairs when the value is None to use TOML serialization
1 participant