You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A generated model with an enum field generates its default value using string type instead of enum value causes pydantic serializer warnings:
.../env/lib/python3.10/site-packages/pydantic/main.py:477: UserWarning: Pydantic serializer warnings:
Expected `enum` but got `str` with value `'synced'` - serialized value may not be as expected
return self.__pydantic_serializer__.to_json(
Describe the bug
A generated model with an enum field generates its default value using string type instead of enum value causes pydantic serializer warnings:
The model output is:
Manually updating the model output to the following fixes the warning:
To Reproduce
Example schema:
Used commandline alternative:
Expected behavior
Output the model with field as:
Version:
The text was updated successfully, but these errors were encountered: