Remove schema validation from command parameters/returns

Do not use ObjectSchema and instead pass parameters, progress and
return values as opaque JSON objects.

BUG: 25841230
Change-Id: I0ea5fc31d526b1e5d6c66453b613e7284aa3fcac
Reviewed-on: https://weave-review.googlesource.com/1611
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
diff --git a/src/commands/command_instance.h b/src/commands/command_instance.h
index 5a2ebf7..30ef907 100644
--- a/src/commands/command_instance.h
+++ b/src/commands/command_instance.h
@@ -44,12 +44,12 @@
   };
 
   // Construct a command instance given the full command |name| which must
-  // be in format "<package_name>.<command_name>", a command |category| and
-  // a list of parameters and their values specified in |parameters|.
+  // be in format "<package_name>.<command_name>" and a list of parameters and
+  // their values specified in |parameters|.
   CommandInstance(const std::string& name,
                   Command::Origin origin,
                   const CommandDefinition* command_definition,
-                  const ValueMap& parameters);
+                  const base::DictionaryValue& parameters);
   ~CommandInstance() override;
 
   // Command overrides.
@@ -124,11 +124,11 @@
   // Command definition.
   const CommandDefinition* command_definition_{nullptr};
   // Command parameters and their values.
-  ValueMap parameters_;
+  base::DictionaryValue parameters_;
   // Current command execution progress.
-  ValueMap progress_;
+  base::DictionaryValue progress_;
   // Command results.
-  ValueMap results_;
+  base::DictionaryValue results_;
   // Current command state.
   Command::State state_ = Command::State::kQueued;
   // Error encountered during execution of the command.