blob: 19ec5b8663ca99804a859a14de8f1afd945730f9 [file] [log] [blame]
module example-schema {
prefix aha;
namespace "http://example.com";
leaf leafInt {
type int32;
}
leaf leafString {
type string;
}
leaf leafEnum {
type enumeration {
enum lol;
enum data;
enum coze;
}
}
leaf leafDecimal {
type decimal64 {
fraction-digits 9;
}
}
container pContainer {
presence true;
}
list person {
key 'name';
leaf name {
type string;
}
}
grouping upAndDown {
leaf up {
type boolean;
}
leaf down {
type boolean;
}
}
uses upAndDown;
container lol {
uses upAndDown;
}
}