Skip to content

Commit

Permalink
Version 0.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
oddaspa authored Mar 21, 2024
1 parent 007b4d4 commit fc6ebd2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ Changes are grouped as follows
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## [0.6.3] - 2024-03-12

### Fixed

- Fixed json decoding bug in in Pydantic where special characters where not serialized correctly. More specifically two byte characters would be read as 1 byte, resulting in incorrect content length.

## [0.6.2] - 2024-03-12

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/pyclarify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
)
import pyclarify.query

__version__ = "0.6.2"
__version__ = "0.6.3"
__API_version__ = "1.1"
3 changes: 2 additions & 1 deletion src/pyclarify/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import logging
import pyclarify
import requests
import json
from pyclarify.__utils__.stopping_conditions import select_stopping_condition
from datetime import timedelta, datetime
from pydantic import validate_arguments
Expand Down Expand Up @@ -109,7 +110,7 @@ def iterate_requests(
counter = 0
for request in iterator:
counter += 1
r = request.model_dump_json()
r = json.dumps(request.model_dump(mode='json')) # TODO: Pydantic V2 does not do this in an elegant way
rpc_response = self.make_request(r)
response = self.handle_response(request, rpc_response)
if responses is None:
Expand Down

0 comments on commit fc6ebd2

Please sign in to comment.