veyron/services/store: Don't put values of the wrong type.

Previously, if the caller tried to put a value of the wrong type into a
top-level field, the value would be placed in the implicit directory of the object,
under the same name as that field.

This fix adds a new failure class to field.Set. If the value has the wrong type,
field.Set will return SetFailedWrongType, and Put() will return an error.

Change-Id: I8a6294c5a717434909e36d51e73b82a64bcb727c
3 files changed
tree: 66da8fd1ffd41b1f4fc8dd2fa5b071006f19e12e
  1. examples/
  2. lib/
  3. products/
  4. runtimes/
  5. security/
  6. services/
  7. tools/