-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.sia
46 lines (43 loc) · 922 Bytes
/
sample.sia
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
schema Person {
name string8
age? string(min = 0, max = 120)
ageNumber? int32
email? string8(encoding = "ascii")
ageArray? int8[]
ageArray2? int16[]
ageArray3? int32[32]
ageArray4? int64[64]
footSizeArray? uint8[8]
footSizeArray2? uint16[16]
footSizeArray3? uint32[32]
footSizeArray4? uint64[64]
tags8 string8[8]
tags16 string16[8]
tags32 string32[8]
tags64 string64[8]
tagsByteArray8 byte8[]
tagsByteArray16 byte16[]
tagsByteArray32 byte32[]
tagsByteArray64 byte64[]
tagsBool bool[64]
tagsBigInt bigint[]
address Address
isAdmin bool
billingInfo? BillingInfo
}
schema Address {
street string8 = "Default Street"
city string8
zip string(min = 5, max = 5)
country Country
}
schema Country {
name string8
code string(min = 2, max = 2)
codeArray string8[]
flag string8
}
schema BillingInfo {
cardNumber string8
expiryDate string8
}