blob: 19ec5b8663ca99804a859a14de8f1afd945730f9 [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át45f4a822019-05-29 21:10:50 +020031 list person {
32 key 'name';
33 leaf name {
34 type string;
35 }
36 }
37
Václav Kubernát7d82da72019-04-11 15:16:38 +020038 grouping upAndDown {
39 leaf up {
40 type boolean;
41 }
42 leaf down {
43 type boolean;
44 }
45 }
46
47 uses upAndDown;
48
49 container lol {
50 uses upAndDown;
51 }
Václav Kubernát73109382018-09-14 19:52:03 +020052}