Closed samritchie closed 7 years ago
Wow, great work.
I reviewed the code (poorly, just had a look at the diff) and I think I have an identified an issue where supplying an optional HashKey in the presence of a GlobalSecondaryIndex would not result in a error, which it should. If that is just a case of me not understanding the code I wrote one year ago, could you please also add a test the checks for this?
Thanks @eiriktsarpalis - I added a test. As far as I can tell, mkKAS
is only called for GSI Hash Keys - the primary hashes create the schema via setResult
on line 169
Thanks. Merged and pushed as version 0.7.0
Addresses #3. This PR modifies
KeyAttributeSchema
validation to allow wrapper (Nullable
/Option
) attribute types, and changes theUpdateExpr
check to allow modification of non-primary key attributes. I even added tests! š@eiriktsarpalis Iād appreciate a once-over/feedback if you have time.
Thanks!