Skip to content

Commit

Permalink
Use serialize_data
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMarble committed Jul 30, 2024
1 parent 95b79cc commit 92af5d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osidb_bindings/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def file_trackers(self, form_data: Dict[str, Any], *args, **kwargs):
f'and the operation "file" is not defined.'
)

transformed_data = model.from_dict(form_data)
transformed_data = serialize_data(form_data, model)
sync_fn = get_sync_function(method_module)
return sync_fn(
*args,
Expand Down Expand Up @@ -97,7 +97,7 @@ def reject_flaw(self, id: str, form_data: Dict[str, Any], *args, **kwargs):
f'The request body for the resource "flaw" '
f'and the operation "reject" is not defined.'
)
transformed_data = model.from_dict(form_data)
transformed_data = serialize_data(form_data, model)
return sync_fn(
id,
*args,
Expand Down

0 comments on commit 92af5d1

Please sign in to comment.