summaryrefslogtreecommitdiffstats
path: root/infra/data-impl/src/test/resources/test-validate.yang
blob: 144045661cfac2de87b341261a6fc5cd3333a3c1 (plain)
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
module test-validate {
    yang-version 1;
    namespace "urn:honeycomb:params:xml:ns:yang:test:validate";
    prefix "td";

    revision "2018-06-08" {
        description "Initial revision";
    }

    container top-container {
        leaf name {
            type string;
        }
        list list-in-container {
            key "name";

            leaf name {
                type string;
            }

            leaf description {
                type string;
                mandatory true;
            }
        }
    }
}