-
Notifications
You must be signed in to change notification settings - Fork 57
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
[Bug] pydantic_encoder -> jsonable_encoder #136
Labels
bug
Something isn't working
Comments
Can you clarify, new versions of pydantic or new versions of the Python SDK? Specifically, can you confirm the sample does not work out of the box right now? If so, this may be a bug. |
The same did not work out of the box with following versions of the SDK and Pydantic:
It worked when I made the one line change above. |
In that case, this seems redundant. Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What are you really trying to do?
I was trying to use the encoder example here:
https://github.com/temporalio/samples-python/tree/a0b2cdf4b0eef905776fba9b1a2805357b8b473e/pydantic_converter
Describe the bug
In the new versions, the converter was not working as advertised.
I had to modify the import of pydantic_encoder:
to
As show here:
https://fastapi.tiangolo.com/tutorial/encoder/#using-the-jsonable_encoder
--
I think it is a bug. But I am not a 100% to be honest if there is something else going on that I am not aware of.
The text was updated successfully, but these errors were encountered: