Skip to content

Commit ab0700f

Browse files
authored
Update dictionary.md
1 parent a50a52c commit ab0700f

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

graph/patterns/dictionary.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ For more information, see the [OData reference](https://github.com/oasis-tcs/oda
3737

3838
## Examples
3939

40-
### Declaring a string dictionary
40+
### String dictionary
41+
42+
#### CSDL declaration
4143
The following example demonstrates defining a dictionary that can contain string values.
4244

4345
```xml
@@ -60,7 +62,7 @@ The following example demonstrates defining a dictionary that can contain string
6062
Please note that schema validation will fail due to the casing of `Dictionary`.
6163
This warning should be suppressed.
6264

63-
### Defining a dictionary property
65+
#### Defining a dictionary property
6466
The following example shows defining a dictionary property, "userTags", on the item entity type.
6567

6668
```xml
@@ -70,7 +72,7 @@ The following example shows defining a dictionary property, "userTags", on the i
7072
</EntityType>
7173
```
7274

73-
### Reading a dictionary
75+
#### Reading a dictionary
7476
Dictionaries are represented in JSON payloads as a JSON object, where the property names are comprised of the keys and their values are the corresponding key values.
7577

7678
The following example shows reading an item with a dictionary property named "userTags":
@@ -90,7 +92,7 @@ Response:
9092
}
9193
```
9294

93-
### Setting a dictionary value
95+
#### Setting a dictionary value
9496
The following example shows setting a dictionary value. If "hairColor" already exists, it is updated, otherwise it is added.
9597

9698
```http
@@ -102,7 +104,7 @@ PATCH /item/userTags
102104
}
103105
```
104106

105-
### Deleting a dictionary value
107+
#### Deleting a dictionary value
106108
A dictionary value can be removed by setting the value to null.
107109
```http
108110
PATCH /item/userTags
@@ -113,7 +115,9 @@ PATCH /item/userTags
113115
}
114116
```
115117

116-
### Declaring a complex typed dictionary
118+
### Complex typed dictionary
119+
120+
#### CSDL declaration
117121
Dictionaries can also contain complex types whose values may be constrained to a particular set of complex types.
118122

119123
The following example defines a complex type **roleSettings**, an **assignedRoleGroupDictionary** that contains **roleSettings**, and an **assignedRoles** property that uses the dictionary..
@@ -147,7 +151,7 @@ The following example defines a complex type **roleSettings**, an **assignedRole
147151
</Schema>
148152
```
149153

150-
### Reading a entity with a complex-typed dictionary
154+
#### Reading a entity with a complex-typed dictionary
151155

152156
The following example illustrates reading an entity containing the complex-typed dictionary "assignedRoles".
153157

@@ -175,7 +179,7 @@ Response:
175179
}
176180
```
177181

178-
### Reading the dictionary property
182+
#### Reading the dictionary property
179183
The following example shows getting just the "assignedRoles" dictionary property.
180184

181185
```HTTP

0 commit comments

Comments
 (0)