Skip to content

Commit 43debe6

Browse files
committed
🔧 refactor(convex_api): replace .json() with .model_dump_json() for better data serialization
1 parent 95674b2 commit 43debe6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎convex_api/api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ def _post(
648648
max_sleep_time_seconds = 1
649649
result: Union[Dict[str, Any], None] = None
650650
while sequence_retry_count >= 0:
651-
response = requests.post(url, data=data.json())
651+
response = requests.post(url, data=data.model_dump_json())
652652
if response.status_code == 200:
653653
result = response.json()
654654
break

‎convex_api/tool/command/submit_command.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ def execute(self, args: Namespace, output: Output):
6464
if not result:
6565
return
6666

67-
output.add_line(result.json())
67+
output.add_line(result.model_dump_json())
6868
output.set_values(result.dict())

0 commit comments

Comments
 (0)