Created
June 25, 2013 11:03
-
-
Save npalko/5857665 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# default to optional | |
Person: !message { | |
1 : {name: id, type: int32, required: Yes}, | |
2 : {name: name, type: string}, | |
3 : {name: email, type: string}, | |
PhoneType: !enum { | |
0 : MOBILE, | |
1 : HOME, | |
2 : WORK, | |
}, | |
PhoneNumber: !message { | |
1 : {name: number}, | |
2 : {name: type, type: PhoneType, default: HOME}, | |
}, | |
4 : {name: phone, repeated: Yes}, | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment