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

PhoneNumber supports empty string? #2513

Open
JonathanAsbury-Dovaxis opened this issue Aug 29, 2024 · 0 comments
Open

PhoneNumber supports empty string? #2513

JonathanAsbury-Dovaxis opened this issue Aug 29, 2024 · 0 comments

Comments

@JonathanAsbury-Dovaxis
Copy link

Is your feature request related to a problem? Please describe.

PhoneNumber is null. But some NoSQL databases do not allow inserting Null Properties, like Firestore. Consequently, all null PhoneNumbers need to be deleted from the object array prior to inserting, or a process needs to set nulls to "" and then convert them back to null.

Describe the solution you'd like
Curious is a flag could be set on how to handle empty strings to account for this. More specifically, if allowEmptyStrings = true, then
serializing/deserializing wouldn't fail? Alternatively, a empty space regex could be used instead.

Describe alternatives you've considered
Using my own parser, which is what I'm going to do.

Additional context
I realize this issue is uniquely tied to Firebase, but sharing is caring, right? Planning to switch to MongoDb which allows null properties.

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

No branches or pull requests

1 participant