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
Rename sample pydantic_converter to pydanticv1_converter (and tests/packages/dep-group/etc) and make a new pydantic_converter sample that works with v2
The text was updated successfully, but these errors were encountered:
Until the sample is present, you can apply the concepts/approaches of the custom conversion to whatever is needed for v2 without applying the specific code
@JaneJeon I am using pydantic 2 with temporal just by changing pydantic_encoder to to_jsonable_python:
frompydantic_coreimportto_jsonable_python
...
# We let JSON conversion errors be thrown to callerreturnPayload(
metadata={"encoding": self.encoding.encode()},
data=json.dumps(value, separators=(",", ":"), sort_keys=True, default=to_jsonable_python).encode(),
)
Describe the solution you'd like
Rename sample
pydantic_converter
topydanticv1_converter
(and tests/packages/dep-group/etc) and make a newpydantic_converter
sample that works with v2The text was updated successfully, but these errors were encountered: