blob: 2179fb93d9b866dad56317f8277e1253c125ea51 [file] [log] [blame]
ToineSiebelinke7311182020-11-10 16:32:50 +00001module stores {
ToineSiebelink79ade5d2020-10-01 14:43:49 +01002 yang-version 1.1;
ToineSiebelink79ade5d2020-10-01 14:43:49 +01003 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 container bookstore {
19
ToineSiebelinke7311182020-11-10 16:32:50 +000020 leaf bookstore-name {
21 type string;
22 }
23
ToineSiebelink79ade5d2020-10-01 14:43:49 +010024 list categories {
25
ToineSiebelinke7311182020-11-10 16:32:50 +000026 key "code";
27
28 leaf code {
29 type string;
30 }
ToineSiebelink79ade5d2020-10-01 14:43:49 +010031
32 leaf name {
33 type string;
34 }
35
36 list books {
37 key title;
38
39 leaf title {
40 type string;
41 }
42 leaf lang {
43 type string;
44 }
45 leaf-list authors {
46 type string;
47 }
48 leaf pub_year {
49 type year;
50 }
51 leaf price {
52 type uint64;
53 }
54 }
55 }
56 }
57}