Skip to content

Instantly share code, notes, and snippets.

@dieswaytoofast
Created September 13, 2013 18:26
Show Gist options
  • Save dieswaytoofast/6554260 to your computer and use it in GitHub Desktop.
Save dieswaytoofast/6554260 to your computer and use it in GitHub Desktop.
record
{message,
[{1, message_type, string, required, {json, validate_binary}, "", []},
{2, version, 'version', required, {json, validate_integer_in_list}, {proper, {required_integer_in_list}}, {int64, [1], 1}},
{3, payload, 'payload', required, {ubic_validate, validate}, "", []},
]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment