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

GODRIVER-3427 Add a global "omitempty" flag. #1953

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qingyang-hu
Copy link
Collaborator

@qingyang-hu qingyang-hu commented Feb 20, 2025

GODRIVER-3427

Summary

Add the "OmitEmpty" to both Encoder and BSONOptions so it can be enabled globally.

Background & Motivation

The global flag can be added without impacting any encoding behavior.

@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added the priority-3-low Low Priority PR for Review label Feb 20, 2025
Copy link
Contributor

API Change Report

./v2/bson

compatible changes

(*Encoder).OmitEmpty: added

./v2/mongo/options

compatible changes

BSONOptions.OmitEmpty: added

@qingyang-hu qingyang-hu marked this pull request as ready for review February 20, 2025 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-low Low Priority PR for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant