mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
Import: UUID attribute is now validated
This commit is contained in:
parent
2a621a4367
commit
4529bcf24a
11 changed files with 23 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue