add schema for tests
This commit is contained in:
committed by
Jacob Alexander
parent
144acbea7a
commit
62682977cb
27
test/test_structs_sequence.capnp
Normal file
27
test/test_structs_sequence.capnp
Normal file
@@ -0,0 +1,27 @@
|
||||
@0x9dafb673e5609df6;
|
||||
|
||||
|
||||
enum FruitId {
|
||||
apple @0;
|
||||
banana @1;
|
||||
cherry @2;
|
||||
}
|
||||
|
||||
struct UnknownFruit {
|
||||
fruitId @0: FruitId;
|
||||
}
|
||||
|
||||
struct Apple {
|
||||
fruitId @0: FruitId;
|
||||
color @1: Text;
|
||||
}
|
||||
|
||||
struct Banana {
|
||||
fruitId @0: FruitId;
|
||||
length @1: Float32;
|
||||
}
|
||||
|
||||
struct Cherry {
|
||||
fruitId @0: FruitId;
|
||||
sweetness @1: UInt8;
|
||||
}
|
||||
Reference in New Issue
Block a user