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
Pydantic added by_alias and by_name keyword arguments to
BaseModel.model_validate_json in 2.11.1:
pydantic/pydantic@acb0f10
This caused mypy to report that that the Pydantic v2 CloudEvent did not
override model_validate_json() correctly. Our override now accepts these
newly-added arguments. They have no effect, as the implementation does
not use Pydantic to validate the JSON, but we also don't use field
aliases, so the only effect they could have in the superclass would be
to raise an error if they're both False.
Signed-off-by: Hal Blackburn <hwtb2@cam.ac.uk>
0 commit comments