test/stubgen: add tests for schema transpiling
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
@0xe1f2a3b4c5d6e7f8;
|
||||
|
||||
struct AddressBook {
|
||||
people @0 :List(Person);
|
||||
|
||||
struct Person {
|
||||
name @0 :Text;
|
||||
email @1 :Text;
|
||||
phones @2 :List(PhoneNumber);
|
||||
|
||||
struct PhoneNumber {
|
||||
number @0 :Text;
|
||||
type @1 :Type;
|
||||
|
||||
enum Type {
|
||||
mobile @0;
|
||||
home @1;
|
||||
work @2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user