diff --git a/src/hamster/edit_activity.py b/src/hamster/edit_activity.py index 073f1eab7..99684e201 100644 --- a/src/hamster/edit_activity.py +++ b/src/hamster/edit_activity.py @@ -356,6 +356,11 @@ def validate_fields(self): self.update_status(status="warning", markup=markup) return fact + roundtrip_fact = Fact.parse(fact.serialized()) + if roundtrip_fact != fact: + self.update_status(status="wrong", markup="Fact could not be parsed back") + return None + # nothing unusual self.update_status(status="looks good", markup="") return fact