forked from kernelci/kernelci-api
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api.main: fix pydantic v2 warnings for
UserGroup
Fix the below warnings from pydantic v2 while creating or updating a user account with user groups: ``` kernelci-api | /home/kernelci/.local/lib/python3.11/site-packages/pydantic/main.py:390: UserWarning: Pydantic serializer warnings: kernelci-api | Expected `str` but got `UserGroup` with value `UserGroup(id=ObjectId('64...16ad'), name='kernelci')` - serialized value may not be as expected kernelci-api | return self.__pydantic_serializer__.to_python( ``` Signed-off-by: Jeny Sadadia <[email protected]>
- Loading branch information
1 parent
96245e6
commit 690480c
Showing
1 changed file
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters