You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: graph/patterns/enums.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
In OData, enums represent a subset of the nominal type they rely on, and are especially useful in cases where certain properties have predefined, limited options.
4
4
5
5
```xml
6
-
<EnumTypeName="Color">
6
+
<EnumTypeName="color">
7
7
<MemberName="Red"Value="0" />
8
8
<MemberName="Green"Value="1" />
9
9
<MemberName="Blue"Value="2" />
@@ -24,7 +24,7 @@ In OData, enums represent a subset of the nominal type they rely on, and are esp
24
24
Enumerations are a good alternative to Booleans when one of the two values (`true`, `false`) conveys other possible values not yet conceived. Let's assume we have an `Error` type and a property to communicate how to display it:
25
25
26
26
```xml
27
-
<ComplexTypeName="Error">
27
+
<ComplexTypeName="error">
28
28
<PropertyName="title"Type="Edm.String" />
29
29
<PropertyName="message"Type="Edm.String" />
30
30
<PropertyName="displayAsTip"Type="Edm.Boolean" />
@@ -36,7 +36,7 @@ The `false` value here merely communicates that the error shall not be displayed
36
36
With the current model, the only way is to add more boolean properties to convey the new information:
0 commit comments