Code Review
/
cps.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Merge "Fix: Make bookstore data consistent"
[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 container-without-leaves { }
53
54
container premises {
55
list addresses {
56
key "house-number street";
57
58
leaf house-number {
59
type uint16;
60
}
61
leaf street {
62
type string;
63
}
64
leaf town {
65
type string;
66
}
67
leaf county {
68
type string;
69
}
70
}
71
}
72
73
list categories {
74
75
key "code";
76
77
leaf code {
78
type string;
79
}
80
81
leaf name {
82
type string;
83
}
84
85
list books {
86
key title;
87
88
leaf title {
89
type string;
90
}
91
leaf lang {
92
type string;
93
}
94
leaf-list authors {
95
type string;
96
}
97
leaf-list editions {
98
type year;
99
}
100
leaf price {
101
type uint64;
102
}
103
}
104
}
105
}
106
}