Skip to content

Conversation

@JR-1991
Copy link
Member

@JR-1991 JR-1991 commented Aug 27, 2025

As pointed out in #46 by @bnavigator, this pull request introduces a minor enhancement to the serialization of license information within the dataverse_dict method. Specifically, when dumping a CustomLicense object, any fields with None values will now be excluded from the resulting output dictionary.

Previously, when fields were set to None, Dataverse would issue warnings indicating that the files could not be processed (refer to #46 (comment)). By omitting these fields from the payload, the issue has been resolved.

Adds exclude_none=True to CustomLicense model_dump in Dataset. This ensures that None values are omitted from the terms dictionary when serializing custom license information.
@JR-1991 JR-1991 added this to the v0.4.5 milestone Aug 27, 2025
@JR-1991 JR-1991 self-assigned this Aug 27, 2025
@JR-1991 JR-1991 added the enhancement New feature or request label Aug 27, 2025
@JR-1991 JR-1991 merged commit 36a56c3 into main Sep 2, 2025
8 of 13 checks passed
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

Development

Successfully merging this pull request may close these issues.

2 participants