Skip to content

Releases: pylakey/pydantic_aiohttp

1.1.0

09 Jul 15:09
Compare
Choose a tag to compare

Full Changelog: 1.0.1...1.1.0

1.0.1

16 Jan 10:16
918a841
Compare
Choose a tag to compare
Merge pull request #36 from pylakey/dependabot/github_actions/main/ac…

1.0.0

16 Jan 07:40
Compare
Choose a tag to compare

Full Changelog: 0.8.0...1.0.0

0.8.0

20 Dec 13:10
Compare
Choose a tag to compare

This update introduces a new model, EmptyResponse, which provides a placeholder response class when a response model is not provided. This improves handling of cases where a response model is None by returning an instance of EmptyResponse instead of raising a ValueError, enhancing error management.

Additionally, the version constraint of pydantic has been adjusted to be less than 2, ensuring compatibility. All latest versions will work with Pydantic v2 only.

Full Changelog: 0.7.1...0.8.0

0.7.1

14 Apr 06:33
Compare
Choose a tag to compare
* Added new `RawResponseClass` which returns raw `aiohttp.ClientRespo…

0.7.0

11 Apr 09:37
Compare
Choose a tag to compare

BREAKING

  • All types moved from client to separate types module

  • Removed unused error_response_class from Client constructur parameters


  • Added custom url_compatible_encoder for params, cookies and headers because Aiohttp expects their values to be int, float or str instances

  • model_to_dict now accepts all pydantic.BaseModel.dict parameters

  • utils module added to package export

  • encoders module added to package export

  • All absolute package path exports replaced with relative

0.6.1

02 Mar 12:13
Compare
Choose a tag to compare

What's Changed

  • Upgraded dependencies

Full Changelog: 0.6.0...0.6.1

0.6.0

10 Jan 15:26
Compare
Choose a tag to compare
  • Using custom json requests serializer for better pydantic model serialization

Code of such json encoder was taken from https://github.com/tiangolo/fastapi. Thanks to @tiangolo for implementing it

0.5.1

18 Nov 13:03
Compare
Choose a tag to compare
Hotfixes

0.5.0

18 Nov 12:56
Compare
Choose a tag to compare
Fixed common params in request

Ignore content type in response.json()