add schema for tests

This commit is contained in:
Yevhenii Kizim
2025-03-25 16:08:54 +01:00
committed by Jacob Alexander
parent 144acbea7a
commit 62682977cb

View 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;
}