Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of optional fields such as user_handle.
UserHandle is tagged as Optional[bytes] so field.annotation == bytes doesn't match - add explicit match for user_handle. The conversion from base64 should only be done if input was json - there was a comment to this effect that that didn't work when using parse_raw - but recent releases, using Pydantic 2.0 no longer use those deprecated methods.
- Loading branch information