Closed mattibo closed 10 months ago
it seems the following code also reports the same error:
try to use validate_python
to avoid pydantic json parsing
TypeAdapter(resp._data_model).validate_python(resp.json())
Is this a bug of pydantic?
The bug is fixed with version 2.5.2 of pydantic: https://github.com/pydantic/pydantic/releases/tag/v2.5.2
Maybe ignore the version 2.5.0 and 2.5.1 in pyproject.toml
of githubkit?
when i run this code i get an TypeError after i upgraded to pydantic version 2.5:
following error is raised:
maybe this has something todo with the new json parsing library pydantic hast introduced with version 2.5: https://docs.pydantic.dev/2.5/concepts/json/#json-parsing