Skip to content

Change optional fields to use None type#139

Merged
tr4nt0r merged 1 commit intomainfrom
default_none
Jan 30, 2025
Merged

Change optional fields to use None type#139
tr4nt0r merged 1 commit intomainfrom
default_none

Conversation

@tr4nt0r
Copy link
Collaborator

@tr4nt0r tr4nt0r commented Jan 30, 2025

Instead of defaulting to empty string if the field is missing, the orjson parser would set the field to the string "None".
The reason why the tests behave differently is maybe because they don't parse the raw json but use dicts as test data instead.

@tr4nt0r tr4nt0r added the 👻 bug Something isn't working label Jan 30, 2025
@tr4nt0r tr4nt0r requested a review from miaucl January 30, 2025 20:16
@tr4nt0r tr4nt0r merged commit 76dbb1f into main Jan 30, 2025
26 checks passed
@tr4nt0r tr4nt0r deleted the default_none branch January 30, 2025 21:06
tr4nt0r added a commit that referenced this pull request Mar 16, 2025
Change optional fields in BringAuthResponse and related classes to use None type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👻 bug Something isn't working run smoke test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants