forked from oasis-tcs/odata-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathannotations.xml
More file actions
224 lines (217 loc) · 9.93 KB
/
Copy pathannotations.xml
File metadata and controls
224 lines (217 loc) · 9.93 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" xmlns="http://docs.oasis-open.org/odata/ns/edm" Version="4.01">
<edmx:Reference Uri="http://docs.oasis-open.org/odata/odata-vocabularies/v4.0/vocabularies/Org.OData.Core.V1.xml">
<edmx:Include Namespace="Org.OData.Core.V1" Alias="Core">
<Annotation Term="Core.DefaultNamespace" />
</edmx:Include>
</edmx:Reference>
<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Capabilities.V1.xml">
<edmx:Include Namespace="Org.OData.Capabilities.V1" Alias="Capabilities" />
</edmx:Reference>
<edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470974/Common.xml?api=v2">
<edmx:Include Namespace="com.sap.vocabularies.Common.v1" Alias="Common" />
</edmx:Reference>
<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.xml">
<edmx:Include Namespace="Org.OData.Validation.V1" Alias="Validation" />
</edmx:Reference>
<edmx:DataServices>
<Schema Namespace="Supported.Annotations" Alias="self">
<EntityType Name="SinglePartKey">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="Edm.String" Nullable="false" />
<Property Name="Pattern" Type="Edm.String">
<Annotation Term="Validation.Pattern" String="^.+$" />
</Property>
<Property Name="PatternExt" Type="Edm.String" />
<Property Name="AllowedValues" Type="Edm.String">
<Annotation Term="Validation.AllowedValues">
<Collection>
<Record>
<PropertyValue Property="Value" String="red" />
</Record>
<Record>
<PropertyValue Property="Value" String="green" />
</Record>
<Record>
<PropertyValue Property="Value" String="blue" />
</Record>
</Collection>
</Annotation>
</Property>
<Property Name="AllowedValuesExt" Type="Edm.String" />
<NavigationProperty Name="AllOne" Type="self.TwoPartKey" />
<NavigationProperty Name="AllMany" Type="Collection(self.TwoPartKey)" />
<NavigationProperty Name="NothingOne" Type="self.TwoPartKey" />
<NavigationProperty Name="NothingMany" Type="Collection(self.TwoPartKey)" />
</EntityType>
<EntityType Name="TwoPartKey">
<Key>
<PropertyRef Name="One" />
<PropertyRef Name="Two" />
</Key>
<Property Name="One" Type="Edm.Int32" Nullable="false" />
<Property Name="Two" Type="Edm.Int32" Nullable="false" />
</EntityType>
<EntityContainer Name="Container">
<EntitySet Name="AllSet" EntityType="self.SinglePartKey">
<NavigationPropertyBinding Path="AllOne" Target="TwoAllSet" />
<NavigationPropertyBinding Path="AllMany" Target="TwoAllSet" />
<NavigationPropertyBinding Path="NothingOne" Target="TwoNothingSet" />
<NavigationPropertyBinding Path="NothingMany" Target="TwoNothingSet" />
</EntitySet>
<EntitySet Name="NothingSet" EntityType="self.SinglePartKey">
<NavigationPropertyBinding Path="AllOne" Target="TwoAllSet" />
<NavigationPropertyBinding Path="AllMany" Target="TwoAllSet" />
<NavigationPropertyBinding Path="NothingOne" Target="TwoNothingSet" />
<NavigationPropertyBinding Path="NothingMany" Target="TwoNothingSet" />
<Annotation Term="Capabilities.InsertRestrictions">
<Record>
<PropertyValue Bool="false" Property="Insertable" />
</Record>
</Annotation>
<!-- Note: "not indexable by key" implies "no update, no delete" -->
<Annotation Term="Capabilities.IndexableByKey" Bool="false" />
<!-- Note: "get-list" can't be switched off with standard annotations yet -->
<Annotation Term="Capabilities.SkipSupported" Bool="false" />
<Annotation Term="Capabilities.TopSupported" Bool="false" />
<Annotation Term="Capabilities.CountRestrictions">
<Record>
<PropertyValue Bool="false" Property="Countable" />
</Record>
</Annotation>
<Annotation Term="Capabilities.FilterRestrictions">
<Record>
<PropertyValue Bool="false" Property="Filterable" />
</Record>
</Annotation>
<Annotation Term="Capabilities.SearchRestrictions">
<Record>
<PropertyValue Bool="false" Property="Searchable" />
</Record>
</Annotation>
<Annotation Term="Capabilities.SortRestrictions">
<Record>
<PropertyValue Bool="false" Property="Sortable" />
</Record>
</Annotation>
<Annotation Term="Capabilities.SelectSupport">
<Record>
<PropertyValue Bool="false" Property="Supported" />
</Record>
</Annotation>
<Annotation Term="Capabilities.ExpandRestrictions">
<Record>
<PropertyValue Bool="false" Property="Expandable" />
</Record>
</Annotation>
<!-- Note: $select can't be switched off with standard annotations yet -->
</EntitySet>
<Singleton Name="AllSingleton" Type="self.SinglePartKey">
<Annotation Term="Core.Description" String="First Singleton" />
<NavigationPropertyBinding Path="AllOne" Target="TwoAllSet" />
<NavigationPropertyBinding Path="AllMany" Target="TwoAllSet" />
<NavigationPropertyBinding Path="NothingOne" Target="TwoNothingSet" />
<NavigationPropertyBinding Path="NothingMany" Target="TwoNothingSet" />
</Singleton>
<Singleton Name="ReadOnlySingleton" Type="self.SinglePartKey">
<NavigationPropertyBinding Path="AllOne" Target="TwoAllSet" />
<NavigationPropertyBinding Path="AllMany" Target="TwoAllSet" />
<NavigationPropertyBinding Path="NothingOne" Target="TwoNothingSet" />
<NavigationPropertyBinding Path="NothingMany" Target="TwoNothingSet" />
<Annotation Term="Capabilities.UpdateRestrictions">
<Record>
<PropertyValue Bool="false" Property="Updatable" />
</Record>
</Annotation>
<Annotation Term="Capabilities.ExpandRestrictions">
<Record>
<PropertyValue Bool="false" Property="Expandable" />
</Record>
</Annotation>
<!-- Note: $select can't be switched off with standard annotations yet -->
</Singleton>
<EntitySet Name="TwoAllSet" EntityType="self.TwoPartKey">
</EntitySet>
<EntitySet Name="TwoReadOnlySet" EntityType="self.TwoPartKey" />
<EntitySet Name="TwoNothingSet" EntityType="self.TwoPartKey" />
</EntityContainer>
<Annotations Target="self.SinglePartKey/PatternExt">
<Annotation Term="Validation.Pattern" String="^.+$" />
</Annotations>
<Annotations Target="self.SinglePartKey/AllowedValuesExt">
<Annotation Term="Validation.AllowedValues">
<Collection>
<Record>
<PropertyValue Property="Value" String="red" />
</Record>
<Record>
<PropertyValue Property="Value" String="green" />
</Record>
<Record>
<PropertyValue Property="Value" String="blue" />
</Record>
</Collection>
</Annotation>
</Annotations>
<Annotations Target="self.Container/TwoReadOnlySet">
<Annotation Term="Capabilities.InsertRestrictions">
<Record>
<PropertyValue Bool="false" Property="Insertable" />
</Record>
</Annotation>
<Annotation Term="Capabilities.UpdateRestrictions">
<Record>
<PropertyValue Bool="false" Property="Updatable" />
</Record>
</Annotation>
<Annotation Term="Capabilities.DeleteRestrictions">
<Record>
<PropertyValue Bool="false" Property="Deletable" />
</Record>
</Annotation>
</Annotations>
<Annotations Target="self.Container/TwoNothingSet">
<Annotation Term="Capabilities.InsertRestrictions">
<Record>
<PropertyValue Bool="false" Property="Insertable" />
</Record>
</Annotation>
<Annotation Term="Capabilities.IndexableByKey" Bool="false" />
<Annotation Term="Capabilities.SkipSupported" Bool="false" />
<Annotation Term="Capabilities.TopSupported" Bool="false" />
<Annotation Term="Capabilities.CountRestrictions">
<Record>
<PropertyValue Bool="false" Property="Countable" />
</Record>
</Annotation>
<Annotation Term="Capabilities.FilterRestrictions">
<Record>
<PropertyValue Bool="false" Property="Filterable" />
</Record>
</Annotation>
<Annotation Term="Capabilities.SortRestrictions">
<Record>
<PropertyValue Bool="false" Property="Sortable" />
</Record>
</Annotation>
<Annotation Term="Capabilities.SearchRestrictions">
<Record>
<PropertyValue Bool="false" Property="Searchable" />
</Record>
</Annotation>
<Annotation Term="Capabilities.SelectSupport">
<Record>
<PropertyValue Bool="false" Property="Supported" />
</Record>
</Annotation>
<Annotation Term="Capabilities.ExpandRestrictions">
<Record>
<PropertyValue Bool="false" Property="Expandable" />
</Record>
</Annotation>
</Annotations>
</Schema>
</edmx:DataServices>
</edmx:Edmx>