Skip to content

Commit

Permalink
Remove exclude_unset
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-baillargeon committed Dec 9, 2024
1 parent e69930a commit f1fef8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anta/result_manager/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class BaseTestResult(BaseModel, ABC):
@field_serializer("inputs")
def serialize_inputs(self, inputs: BaseModel | None) -> dict[str, Any] | None:
"""Serialize the inputs field to a dictionary."""
return inputs.model_dump(mode="json", serialize_as_any=True, exclude={"result_overwrite", "filters"}, exclude_unset=True) if inputs else None
return inputs.model_dump(mode="json", serialize_as_any=True, exclude_none=True) if inputs else None

def is_success(self, message: str | None = None) -> None:
"""Set status to success.
Expand Down

0 comments on commit f1fef8d

Please sign in to comment.