-
-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
72 additions
and
34 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@0xdbb9ad1f14bf0b36; # unique file ID, generated by `capnp id` | ||
|
||
struct Person { | ||
name @0 :Text; | ||
birthdate @3 :Date; | ||
|
||
email @1 :Text; | ||
phones @2 :List(PhoneNumber); | ||
|
||
struct PhoneNumber { | ||
number @0 :Text; | ||
type @1 :Type; | ||
|
||
enum Type { | ||
mobile @0; | ||
home @1; | ||
work @2; | ||
} | ||
} | ||
} | ||
|
||
struct Date { | ||
year @0 :Int16; | ||
month @1 :UInt8; | ||
day @2 :UInt8; | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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