Skip to content

Commit f2e08ab

Browse files
authored
[Communication] Making NetworkTraversal RouteType a definition (#16717)
1 parent aa02377 commit f2e08ab

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

specification/communication/data-plane/NetworkTraversal/preview/2021-10-08-preview/CommunicationNetworkTraversal.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,7 @@
6363
"type": "string"
6464
},
6565
"routeType": {
66-
"description": "The routing methodology to where the ICE server will be located from the client.",
67-
"type": "string",
68-
"enum": [
69-
"any",
70-
"nearest"
71-
]
66+
"$ref": "#/definitions/RouteType"
7267
}
7368
}
7469
},
@@ -98,12 +93,7 @@
9893
"type": "string"
9994
},
10095
"routeType": {
101-
"description": "The routing methodology to where the ICE server will be located from the client.",
102-
"type": "string",
103-
"enum": [
104-
"any",
105-
"nearest"
106-
]
96+
"$ref": "#/definitions/RouteType"
10797
}
10898
}
10999
},
@@ -128,6 +118,18 @@
128118
}
129119
}
130120
}
121+
},
122+
"RouteType": {
123+
"description": "The routing methodology to where the ICE server will be located from the client.",
124+
"enum": [
125+
"any",
126+
"nearest"
127+
],
128+
"type": "string",
129+
"x-ms-enum": {
130+
"name": "RouteType",
131+
"modelAsString": true
132+
}
131133
}
132134
},
133135
"parameters": {

0 commit comments

Comments
 (0)