Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.6.3 #171

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading