blob: 01eac5f33909bee36c72abdf1aa2e29764f367e1 [file] [log] [blame]
ToineSiebelink79ade5d2020-10-01 14:43:49 +01001module bookstore {
2 yang-version 1.1;
3
4 namespace "org:onap:ccsdk:sample";
5
6 prefix book-store;
7
8 revision "2020-09-15" {
9 description
10 "Sample Model";
11 }
12
13 typedef year {
14 type uint16 {
15 range "1000..9999";
16 }
17 }
18
19 container bookstore {
20
21 list categories {
22
23 key name;
24
25 leaf name {
26 type string;
27 }
28
29 list books {
30 key title;
31
32 leaf title {
33 type string;
34 }
35 leaf lang {
36 type string;
37 }
38 leaf-list authors {
39 type string;
40 }
41 leaf pub_year {
42 type year;
43 }
44 leaf price {
45 type uint64;
46 }
47 }
48 }
49 }
50}