-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathOrg.OData.Validation.V1.json
More file actions
220 lines (220 loc) · 9.87 KB
/
Copy pathOrg.OData.Validation.V1.json
File metadata and controls
220 lines (220 loc) · 9.87 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
{
"$Version": "4.0",
"$Reference": {
"https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.json": {
"$Include": [
{
"$Namespace": "Org.OData.Core.V1",
"$Alias": "Core"
}
]
}
},
"Org.OData.Validation.V1": {
"$Alias": "Validation",
"@Core.Description": "Terms describing validation rules",
"@Core.Links": [
{
"rel": "alternate",
"href": "https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.xml"
},
{
"rel": "latest-version",
"href": "https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.json"
},
{
"rel": "describedby",
"href": "https://github.com/oasis-tcs/odata-vocabularies/blob/main/vocabularies/Org.OData.Validation.V1.md"
}
],
"Pattern": {
"$Kind": "Term",
"$AppliesTo": [
"Property",
"Parameter",
"Term"
],
"@Core.Description": "The pattern that a string property, parameter, or term must match. This SHOULD be a valid regular expression, according to the ECMA 262 regular expression dialect.",
"@Core.RequiresType": "Edm.String"
},
"Minimum": {
"$Kind": "Term",
"$Type": "Edm.PrimitiveType",
"$AppliesTo": [
"Property",
"Parameter",
"Term"
],
"@Core.Description": "Minimum value that a property, parameter, or term can have.",
"@Validation.ApplicableTerms": [
"Validation.Exclusive"
]
},
"Maximum": {
"$Kind": "Term",
"$Type": "Edm.PrimitiveType",
"$AppliesTo": [
"Property",
"Parameter",
"Term"
],
"@Core.Description": "Maximum value that a property, parameter, or term can have.",
"@Validation.ApplicableTerms": [
"Validation.Exclusive"
]
},
"Exclusive": {
"$Kind": "Term",
"$Type": "Core.Tag",
"$DefaultValue": true,
"$AppliesTo": [
"Annotation"
],
"@Core.Description": "Tags a Minimum or Maximum as exclusive, i.e. an open interval boundary."
},
"AllowedValues": {
"$Kind": "Term",
"$Collection": true,
"$Type": "Validation.AllowedValue",
"$AppliesTo": [
"Property",
"Parameter",
"TypeDefinition"
],
"@Core.Description": "A collection of valid values for the annotated property, parameter, or type definition"
},
"AllowedValue": {
"$Kind": "ComplexType",
"@Validation.ApplicableTerms": [
"Core.SymbolicName"
],
"Value": {
"$Type": "Edm.PrimitiveType",
"$Nullable": true,
"@Core.Description": "An allowed value for the property, parameter, or type definition"
}
},
"MultipleOf": {
"$Kind": "Term",
"$Type": "Edm.Decimal",
"$AppliesTo": [
"Property",
"Parameter",
"Term"
],
"@Core.Description": "The value of the annotated property, parameter, or term must be an integer multiple of this positive value. For temporal types, the value is measured in seconds."
},
"Constraint": {
"$Kind": "Term",
"$Type": "Validation.ConstraintType",
"$AppliesTo": [
"Property",
"NavigationProperty",
"Parameter",
"EntityType",
"ComplexType"
],
"@Core.Description": "Condition that the annotation target has to fulfill"
},
"ConstraintType": {
"$Kind": "ComplexType",
"FailureMessage": {
"$Nullable": true,
"@Core.IsLanguageDependent": true,
"@Core.Description": "Human-readable message that can be shown to end users if the constraint is not fulfilled"
},
"Condition": {
"$Type": "Edm.Boolean",
"@Core.Description": "Value MUST be a dynamic expression that evaluates to true if and only if the constraint is fulfilled"
}
},
"ItemsOf": {
"$Kind": "Term",
"$Collection": true,
"$Type": "Validation.ItemsOfType",
"$AppliesTo": [
"EntityType",
"ComplexType"
],
"@Core.Description": "A list of constraints describing that entities related via one navigation property MUST also be related via another, collection-valued navigation property. The same `path` value MUST NOT occur more than once.",
"@Core.LongDescription": "Example: entity type `Customer` has navigation properties `AllOrders`, `OpenOrders`, and `ClosedOrders`. \nThe term allows to express that items of `OpenOrders` and `ClosedOrders` are also items of the `AllOrders` navigation property,\neven though they are defined in an `Orders` entity set."
},
"ItemsOfType": {
"$Kind": "ComplexType",
"@Core.Description": "Entities related via the single- or collection-valued navigation property identified by `path` are also related via the collection-valued navigation property identified by `target`.",
"path": {
"$Type": "Edm.NavigationPropertyPath",
"@Core.Description": "A path to a single- or collection-valued navigation property"
},
"target": {
"$Type": "Edm.NavigationPropertyPath",
"@Core.Description": "A path to a collection-valued navigation property"
}
},
"OpenPropertyTypeConstraint": {
"$Kind": "Term",
"$Collection": true,
"$Type": "Validation.SingleOrCollectionType",
"$AppliesTo": [
"ComplexType",
"EntityType"
],
"@Core.Description": "Dynamic properties added to the annotated open structured type are restricted to the listed types."
},
"DerivedTypeConstraint": {
"$Kind": "Term",
"$Collection": true,
"$Type": "Validation.SingleOrCollectionType",
"$AppliesTo": [
"EntitySet",
"Singleton",
"NavigationProperty",
"Property",
"TypeDefinition",
"Parameter",
"ReturnType"
],
"@Core.Description": "Values are restricted to types that are both identical to or derived from the declared type and a type listed in this collection.",
"@Core.LongDescription": "This allows restricting values to certain sub-trees of an inheritance hierarchy,\n including hierarchies starting at the [Built-In Abstract Types](https://docs.oasis-open.org/odata/odata-csdl-json/v4.01/odata-csdl-json-v4.01.html#sec_BuiltInAbstractTypes).\n Types listed in this collection are ignored if they are not derived from the declared type of the annotated model element\n or would not be allowed as declared type of the annotated model element.\n\n When applied to a collection-valued element, this annotation specifies the types allowed for members\n of the collection without mentioning the `Collection()` wrapper.\n The SingleOrCollectionType may only include the `Collection()` wrapper\n if the annotation is applied to an element with declared type `Edm.Untyped`."
},
"SingleOrCollectionType": {
"$Kind": "TypeDefinition",
"$UnderlyingType": "Edm.String",
"@Core.Description": "The qualified name of a type in scope, optionally wrapped in `Collection()` to denote a collection of instances of the type"
},
"AllowedTerms": {
"$Kind": "Term",
"$Collection": true,
"$Type": "Core.QualifiedTermName",
"$AppliesTo": [
"Term",
"Property"
],
"@Core.Description": "Annotate a term of type Edm.AnnotationPath, or a property of type Edm.AnnotationPath that is used within a structured term, to restrict the terms that can be targeted by the path.",
"@Core.LongDescription": "The annotation path expression is intended to end in a path segment with one of the listed terms. For forward compatibility, clients should be prepared for the annotation to reference terms besides those listed.",
"@Core.RequiresType": "Edm.AnnotationPath"
},
"ApplicableTerms": {
"$Kind": "Term",
"$Collection": true,
"$Type": "Core.QualifiedTermName",
"@Core.Description": "Names of specific terms that are applicable and may be applied in the current context. This annotation does not restrict the use of other terms."
},
"MaxItems": {
"$Kind": "Term",
"$Type": "Edm.Int64",
"$AppliesTo": [
"Collection"
],
"@Core.Description": "The annotated collection must have at most the specified number of items."
},
"MinItems": {
"$Kind": "Term",
"$Type": "Edm.Int64",
"$AppliesTo": [
"Collection"
],
"@Core.Description": "The annotated collection must have at least the specified number of items."
}
}
}