Merge "Add maven classifier to Spring Boot JAR"
[cps.git] / integration-test / src / test / resources / data / bookstore / bookstore.yang
1 module stores {
2     yang-version 1.1;
3     namespace "org:onap:ccsdk:sample";
4
5     prefix book-store;
6
7     revision "2020-09-15" {
8         description
9         "Sample Model";
10     }
11
12     typedef year {
13         type uint16 {
14             range "1000..9999";
15         }
16     }
17
18     list bookstore-address {
19         key "bookstore-name";
20         leaf bookstore-name {
21             type string;
22             description
23             "Name of bookstore. Example: My Bookstore";
24         }
25         leaf address {
26             type string;
27             description
28             "Address of store";
29         }
30         leaf postal-code {
31             type string;
32             description
33             "Postal code of store";
34         }
35     }
36
37     container bookstore {
38
39         leaf bookstore-name {
40             type string;
41         }
42
43         container webinfo {
44             leaf domain-name {
45                 type string;
46             }
47             leaf contact-email {
48                 type string;
49             }
50         }
51
52         container support-info {
53                     leaf support-office {
54                         type string;
55                     }
56                     container contact-emails {
57                         leaf email {
58                             type string;
59                         }
60                     }
61                 }
62
63         container container-without-leaves { }
64
65         container premises {
66             list addresses {
67                 key "house-number street";
68
69                 leaf house-number {
70                     type uint16;
71                 }
72                 leaf street {
73                     type string;
74                 }
75                 leaf town {
76                     type string;
77                 }
78                 leaf county {
79                     type string;
80                 }
81             }
82         }
83
84         list categories {
85
86             key "code";
87
88             leaf code {
89                 type string;
90             }
91
92             leaf name {
93                 type string;
94             }
95
96             list books {
97                 key title;
98
99                 leaf title {
100                     type string;
101                 }
102                 leaf lang {
103                     type string;
104                 }
105                 leaf-list authors {
106                     type string;
107                 }
108                 leaf-list editions {
109                     type year;
110                 }
111                 leaf price {
112                     type uint64;
113                 }
114             }
115         }
116     }
117 }