From 7bec0b1f134d213e7505fc2ac03ffea26f2193cc Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sat, 15 Sep 2018 13:15:00 +0200 Subject: bug: add a data validation process to avoid merging incorrect operations --- bug/interface.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bug/interface.go') diff --git a/bug/interface.go b/bug/interface.go index c397bfbc..72dee61c 100644 --- a/bug/interface.go +++ b/bug/interface.go @@ -12,8 +12,8 @@ type Interface interface { // HumanId return the Bug identifier truncated for human consumption HumanId() string - // IsValid check if the Bug data is valid - IsValid() bool + // Validate check if the Bug data is valid + Validate() error // Append an operation into the staging area, to be committed later Append(op Operation) -- cgit