Import: UUID attribute is now validated

This commit is contained in:
Paul Beckingham 2015-08-09 10:20:25 -04:00
parent 2a621a4367
commit 4529bcf24a
11 changed files with 23 additions and 3 deletions

View file

@ -174,8 +174,9 @@ int CmdImport::import (const std::string& input)
////////////////////////////////////////////////////////////////////////////////
void CmdImport::importSingleTask (json::object* obj)
{
// Parse the whole thing.
// Parse the whole thing, validate the data.
Task task (obj);
task.validate ();
// Check whether the imported task is new or a modified existing task.
Task before;