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