Fix example command schema to match the expectations of the server

Actually tested the example schemas against real production server
and fixed inconsitencies in command definitions.

Change-Id: I7d8deea11b9501af28bd0bb485b88201af5404c0
Reviewed-on: https://weave-review.googlesource.com/1655
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
diff --git a/examples/daemon/light/light.cc b/examples/daemon/light/light.cc
index 334bd93..31e3a24 100644
--- a/examples/daemon/light/light.cc
+++ b/examples/daemon/light/light.cc
@@ -98,7 +98,8 @@
                   "minimum": 0.0,
                   "maximum": 1.0
                 }
-              }
+              },
+              "additionalProperties": false
             }
           }
         }
diff --git a/examples/daemon/lock/lock.cc b/examples/daemon/lock/lock.cc
index f07ee52..860020c 100644
--- a/examples/daemon/lock/lock.cc
+++ b/examples/daemon/lock/lock.cc
@@ -37,9 +37,10 @@
       "lock": {
         "lockedState": {
           "type": "string",
-          "enum": ["locked", "unlocked", "partiallyLocked"],
-        }
-        "isLockingSupported": {"type": "boolean"}}
+          "enum": ["locked", "unlocked", "partiallyLocked"]
+        },
+        "isLockingSupported": {"type": "boolean"}
+      }
     })");
 
     device->SetStatePropertiesFromJson(R"({
diff --git a/examples/daemon/sample/sample.cc b/examples/daemon/sample/sample.cc
index bde2f03..2ad56e3 100644
--- a/examples/daemon/sample/sample.cc
+++ b/examples/daemon/sample/sample.cc
@@ -28,20 +28,16 @@
           "minimalRole": "user",
           "parameters": {
             "_name": {"type": "string"}
-          },
-          "results": { "_reply": {"type": "string"} }
+          }
         },
         "_ping": {
-          "minimalRole": "user",
-          "results": {}
+          "minimalRole": "user"
         },
         "_countdown": {
           "minimalRole": "user",
           "parameters": {
             "_seconds": {"type": "integer", "minimum": 1, "maximum": 25}
-          },
-          "progress": { "_seconds_left": {"type": "integer"}},
-          "results": {}
+          }
         }
       }
     })");