blob: 172f78a2159c8cca71ff8a9b6be9dbe08f7e18cc [file] [log] [blame]
Václav Kubernát73109382018-09-14 19:52:03 +02001module example-schema {
2 prefix aha;
3 namespace "http://example.com";
4
5 leaf leafInt {
6 type int32;
7 }
8
9 leaf leafString {
10 type string;
11 }
12
13 leaf leafEnum {
14 type enumeration {
15 enum lol;
16 enum data;
17 enum coze;
18 }
19 }
20
21 leaf leafDecimal {
22 type decimal64 {
23 fraction-digits 9;
24 }
25 }
26
27 container pContainer {
28 presence true;
29 }
30
Václav Kubernát7d82da72019-04-11 15:16:38 +020031 grouping upAndDown {
32 leaf up {
33 type boolean;
34 }
35 leaf down {
36 type boolean;
37 }
38 }
39
40 uses upAndDown;
41
42 container lol {
43 uses upAndDown;
44 }
Václav Kubernát73109382018-09-14 19:52:03 +020045}