I have specs in the external repo example, I'll link to it with a note.  https://github.com/basho/taste-of-riak/blob/master/erlang/Ch03-Msgy-Schema/msgy.erl