Skip to content

Commit fe79d6c

Browse files
authored
lower case
1 parent 93e6fce commit fe79d6c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

graph/patterns/enums.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
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.
44

55
```xml
6-
<EnumType Name="Color">
6+
<EnumType Name="color">
77
<Member Name="Red" Value="0" />
88
<Member Name="Green" Value="1" />
99
<Member Name="Blue" Value="2" />
@@ -24,7 +24,7 @@ In OData, enums represent a subset of the nominal type they rely on, and are esp
2424
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:
2525

2626
```xml
27-
<ComplexType Name="Error">
27+
<ComplexType Name="error">
2828
<Property Name="title" Type="Edm.String" />
2929
<Property Name="message" Type="Edm.String" />
3030
<Property Name="displayAsTip" Type="Edm.Boolean" />
@@ -36,7 +36,7 @@ The `false` value here merely communicates that the error shall not be displayed
3636
With the current model, the only way is to add more boolean properties to convey the new information:
3737

3838
```diff
39-
<ComplexType Name="Error">
39+
<ComplexType Name="error">
4040
<Property Name="title" Type="Edm.String" />
4141
<Property Name="message" Type="Edm.String" />
4242
<Property Name="displayAsTip" Type="Edm.Boolean" />
@@ -50,7 +50,7 @@ Additionally speaking, the workload will now also have to validate the data stru
5050
By using an evolvable enum, instead, all we need to do is to add new members:
5151

5252
```diff
53-
<ComplexType Name="Error">
53+
<ComplexType Name="error">
5454
<Property Name="title" Type="Edm.String" />
5555
<Property Name="message" Type="Edm.String" />
5656
+ <Property Name="displayMethod" Type="microsoft.graph.displayMethod" />

0 commit comments

Comments
 (0)