Skip to content

Commit

Permalink
python: Set by_alias=True by hand here
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-mman committed Jan 27, 2025
1 parent 7559a16 commit 1cf01fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/svix/api/.codegen.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"file-generated-at": "2025-01-27T14:15:22.098786198+00:00",
"git-rev": "e2994d28f1c94d1a0fc90e3dd568ae6ace2c5fc9",
"file-generated-at": "2025-01-27T14:39:43.964452136+00:00",
"git-rev": "bbde42595953457be710de1653c22789ec056219",
"openapi-codegen-version": "0.1.0",
"openapi.json-sha256": "9fa16f8eb28f617b8495cafc9bd529626145df7af01e5c09acdc2b98e39a4725"
}
4 changes: 2 additions & 2 deletions python/svix/api/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async def get_or_create(
path_params={},
query_params={"get_if_exists": "true"},
header_params=options._header_params(),
json_body=application_in.model_dump_json(exclude_unset=True),
json_body=application_in.model_dump_json(exclude_unset=True, by_alias=True),
)
return ApplicationOut.model_validate(response.json())

Expand Down Expand Up @@ -181,7 +181,7 @@ def get_or_create(
path_params={},
query_params={"get_if_exists": "true"},
header_params=options._header_params(),
json_body=application_in.model_dump_json(exclude_unset=True),
json_body=application_in.model_dump_json(exclude_unset=True, by_alias=True),
)
return ApplicationOut.model_validate(response.json())

Expand Down

0 comments on commit 1cf01fd

Please sign in to comment.