Using attribute name "length" in schema causes serializer to fail silently on create
I've been tracing the generated params in table.js before they are sent to the docClient, and any time you attempt to use a schema with the attribute name "length" in it, self.serializer.serializeItem(self.schema, attrs) just returns an empty object. Changing the attribute name to something else fixes it.
This is on 2.0.0-rc10
Thats a wacky bug, I'll look into this asap (probably over the weekend)
Wow I wish I would have found this earlier.... It seems to be something in lodash's reduce function
lodash has a function _.isArrayLike() which is used by a number of functions, including _.map. If a collection passed to _.isArrayLike() includes a length property then it will be treated as an array.
See this issue for advice on other methods to use where collection is known to be an object: https://github.com/lodash/lodash/issues/1870
This appears to still be an issue as of 2.2.0, I just got bitten by this.