Skip to content

Avoid overwriting additionalProperties with the default {} #976

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

Merged

Conversation

0x0400
Copy link
Contributor

@0x0400 0x0400 commented May 10, 2025

A few versions ago, the output of Dict() omitted additionalProperties entirely and I used Dict(metadata={"additionalProperties": True}) as a workaround. Now the output of additionalProperties: {} will breakdown our internal tools.
Although additionalProperties: {} is equivalent to additionalProperties: true, I think it's better not to overwrite the manually set value.

@sloria sloria enabled auto-merge (squash) May 12, 2025 14:36
@sloria
Copy link
Member

sloria commented May 12, 2025

Good catch! thanks for the pr

@sloria sloria merged commit 74af5ea into marshmallow-code:dev May 12, 2025
7 checks passed
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.

2 participants