@typespec/http-specs 0.1.0-alpha.2 → 0.1.0-alpha.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/CHANGELOG.md +146 -0
  2. package/README.md +11 -3
  3. package/dist/specs/encode/bytes/mockapi.js +16 -24
  4. package/dist/specs/encode/bytes/mockapi.js.map +1 -1
  5. package/dist/specs/encode/datetime/mockapi.js +2 -2
  6. package/dist/specs/encode/datetime/mockapi.js.map +1 -1
  7. package/dist/specs/encode/duration/mockapi.js +2 -2
  8. package/dist/specs/encode/duration/mockapi.js.map +1 -1
  9. package/dist/specs/encode/numeric/mockapi.js +2 -2
  10. package/dist/specs/encode/numeric/mockapi.js.map +1 -1
  11. package/dist/specs/helper.d.ts +2 -2
  12. package/dist/specs/helper.d.ts.map +1 -1
  13. package/dist/specs/parameters/basic/mockapi.d.ts.map +1 -1
  14. package/dist/specs/parameters/basic/mockapi.js +3 -3
  15. package/dist/specs/parameters/basic/mockapi.js.map +1 -1
  16. package/dist/specs/parameters/body-optionality/mockapi.d.ts.map +1 -1
  17. package/dist/specs/parameters/body-optionality/mockapi.js +4 -4
  18. package/dist/specs/parameters/body-optionality/mockapi.js.map +1 -1
  19. package/dist/specs/parameters/collection-format/mockapi.js +4 -15
  20. package/dist/specs/parameters/collection-format/mockapi.js.map +1 -1
  21. package/dist/specs/parameters/path/mockapi.d.ts.map +1 -0
  22. package/dist/specs/parameters/path/mockapi.js +29 -0
  23. package/dist/specs/parameters/path/mockapi.js.map +1 -0
  24. package/dist/specs/parameters/spread/mockapi.d.ts.map +1 -1
  25. package/dist/specs/parameters/spread/mockapi.js +19 -19
  26. package/dist/specs/parameters/spread/mockapi.js.map +1 -1
  27. package/dist/specs/payload/json-merge-patch/mockapi.js +4 -4
  28. package/dist/specs/payload/json-merge-patch/mockapi.js.map +1 -1
  29. package/dist/specs/payload/media-type/mockapi.js +2 -2
  30. package/dist/specs/payload/media-type/mockapi.js.map +1 -1
  31. package/dist/specs/payload/multipart/mockapi.d.ts.map +1 -1
  32. package/dist/specs/payload/multipart/mockapi.js +42 -60
  33. package/dist/specs/payload/multipart/mockapi.js.map +1 -1
  34. package/dist/specs/payload/pageable/mockapi.d.ts +3 -0
  35. package/dist/specs/payload/pageable/mockapi.d.ts.map +1 -0
  36. package/dist/specs/payload/pageable/mockapi.js +115 -0
  37. package/dist/specs/payload/pageable/mockapi.js.map +1 -0
  38. package/dist/specs/payload/xml/mockapi.js +1 -4
  39. package/dist/specs/payload/xml/mockapi.js.map +1 -1
  40. package/dist/specs/response/status-code-range/mockapi.d.ts +3 -0
  41. package/dist/specs/response/status-code-range/mockapi.d.ts.map +1 -0
  42. package/dist/specs/response/status-code-range/mockapi.js +29 -0
  43. package/dist/specs/response/status-code-range/mockapi.js.map +1 -0
  44. package/dist/specs/routes/mockapi.js +25 -25
  45. package/dist/specs/routes/mockapi.js.map +1 -1
  46. package/dist/specs/serialization/encoded-name/json/mockapi.js +1 -1
  47. package/dist/specs/serialization/encoded-name/json/mockapi.js.map +1 -1
  48. package/dist/specs/server/versions/not-versioned/mockapi.js +1 -1
  49. package/dist/specs/server/versions/not-versioned/mockapi.js.map +1 -1
  50. package/dist/specs/server/versions/versioned/mockapi.js +8 -12
  51. package/dist/specs/server/versions/versioned/mockapi.js.map +1 -1
  52. package/dist/specs/special-words/mockapi.d.ts.map +1 -1
  53. package/dist/specs/special-words/mockapi.js +6 -6
  54. package/dist/specs/special-words/mockapi.js.map +1 -1
  55. package/dist/specs/streaming/jsonl/mockapi.d.ts +3 -0
  56. package/dist/specs/streaming/jsonl/mockapi.d.ts.map +1 -0
  57. package/dist/specs/streaming/jsonl/mockapi.js +30 -0
  58. package/dist/specs/streaming/jsonl/mockapi.js.map +1 -0
  59. package/dist/specs/type/array/mockapi.js +1 -1
  60. package/dist/specs/type/array/mockapi.js.map +1 -1
  61. package/dist/specs/type/dictionary/mockapi.js +1 -1
  62. package/dist/specs/type/dictionary/mockapi.js.map +1 -1
  63. package/dist/specs/type/enum/extensible/mockapi.js +1 -1
  64. package/dist/specs/type/enum/extensible/mockapi.js.map +1 -1
  65. package/dist/specs/type/enum/fixed/mockapi.js +2 -2
  66. package/dist/specs/type/enum/fixed/mockapi.js.map +1 -1
  67. package/dist/specs/type/model/empty/mockapi.js +2 -2
  68. package/dist/specs/type/model/empty/mockapi.js.map +1 -1
  69. package/dist/specs/type/model/inheritance/enum-discriminator/mockapi.js +1 -1
  70. package/dist/specs/type/model/inheritance/enum-discriminator/mockapi.js.map +1 -1
  71. package/dist/specs/type/model/inheritance/nested-discriminator/mockapi.js +2 -2
  72. package/dist/specs/type/model/inheritance/nested-discriminator/mockapi.js.map +1 -1
  73. package/dist/specs/type/model/inheritance/not-discriminated/mockapi.js +2 -2
  74. package/dist/specs/type/model/inheritance/not-discriminated/mockapi.js.map +1 -1
  75. package/dist/specs/type/model/inheritance/recursive/mockapi.js +1 -1
  76. package/dist/specs/type/model/inheritance/recursive/mockapi.js.map +1 -1
  77. package/dist/specs/type/model/inheritance/single-discriminator/mockapi.js +2 -2
  78. package/dist/specs/type/model/inheritance/single-discriminator/mockapi.js.map +1 -1
  79. package/dist/specs/type/model/usage/mockapi.js +4 -4
  80. package/dist/specs/type/model/usage/mockapi.js.map +1 -1
  81. package/dist/specs/type/model/visibility/mockapi.js +9 -10
  82. package/dist/specs/type/model/visibility/mockapi.js.map +1 -1
  83. package/dist/specs/type/property/additional-properties/mockapi.js +9 -6
  84. package/dist/specs/type/property/additional-properties/mockapi.js.map +1 -1
  85. package/dist/specs/type/property/nullable/mockapi.js +2 -6
  86. package/dist/specs/type/property/nullable/mockapi.js.map +1 -1
  87. package/dist/specs/type/property/optionality/mockapi.js +1 -1
  88. package/dist/specs/type/property/optionality/mockapi.js.map +1 -1
  89. package/dist/specs/type/property/value-types/mockapi.js +3 -3
  90. package/dist/specs/type/property/value-types/mockapi.js.map +1 -1
  91. package/dist/specs/type/scalar/mockapi.js +9 -9
  92. package/dist/specs/type/scalar/mockapi.js.map +1 -1
  93. package/dist/specs/type/union/mockapi.js +2 -2
  94. package/dist/specs/type/union/mockapi.js.map +1 -1
  95. package/dist/specs/versioning/added/mockapi.js +6 -6
  96. package/dist/specs/versioning/added/mockapi.js.map +1 -1
  97. package/dist/specs/versioning/madeOptional/mockapi.js +2 -2
  98. package/dist/specs/versioning/madeOptional/mockapi.js.map +1 -1
  99. package/dist/specs/versioning/removed/mockapi.js +46 -2
  100. package/dist/specs/versioning/removed/mockapi.js.map +1 -1
  101. package/dist/specs/versioning/renamedFrom/mockapi.js +5 -5
  102. package/dist/specs/versioning/renamedFrom/mockapi.js.map +1 -1
  103. package/dist/specs/versioning/returnTypeChangedFrom/mockapi.js +1 -1
  104. package/dist/specs/versioning/returnTypeChangedFrom/mockapi.js.map +1 -1
  105. package/dist/specs/versioning/typeChangedFrom/mockapi.js +3 -3
  106. package/dist/specs/versioning/typeChangedFrom/mockapi.js.map +1 -1
  107. package/package.json +23 -17
  108. package/spec-summary.md +393 -175
  109. package/specs/encode/bytes/main.tsp +28 -20
  110. package/specs/encode/bytes/mockapi.ts +13 -31
  111. package/specs/encode/datetime/main.tsp +2 -7
  112. package/specs/encode/datetime/mockapi.ts +2 -2
  113. package/specs/encode/duration/main.tsp +2 -7
  114. package/specs/encode/duration/mockapi.ts +2 -2
  115. package/specs/encode/numeric/mockapi.ts +2 -2
  116. package/specs/parameters/basic/mockapi.ts +3 -3
  117. package/specs/parameters/body-optionality/mockapi.ts +4 -4
  118. package/specs/parameters/collection-format/main.tsp +5 -25
  119. package/specs/parameters/collection-format/mockapi.ts +4 -16
  120. package/specs/parameters/path/main.tsp +48 -0
  121. package/specs/parameters/path/mockapi.ts +34 -0
  122. package/specs/parameters/spread/mockapi.ts +19 -19
  123. package/specs/payload/json-merge-patch/main.tsp +2 -2
  124. package/specs/payload/json-merge-patch/mockapi.ts +4 -4
  125. package/specs/payload/media-type/mockapi.ts +2 -2
  126. package/specs/payload/multipart/main.tsp +34 -32
  127. package/specs/payload/multipart/mockapi.ts +42 -59
  128. package/specs/payload/pageable/main.tsp +252 -0
  129. package/specs/payload/pageable/mockapi.ts +138 -0
  130. package/specs/payload/xml/mockapi.ts +1 -4
  131. package/specs/response/status-code-range/main.tsp +82 -0
  132. package/specs/response/status-code-range/mockapi.ts +31 -0
  133. package/specs/routes/main.tsp +48 -48
  134. package/specs/routes/mockapi.ts +25 -25
  135. package/specs/serialization/encoded-name/json/main.tsp +1 -1
  136. package/specs/serialization/encoded-name/json/mockapi.ts +1 -1
  137. package/specs/server/endpoint/not-defined/main.tsp +1 -3
  138. package/specs/server/path/multiple/main.tsp +3 -5
  139. package/specs/server/versions/not-versioned/mockapi.ts +1 -1
  140. package/specs/server/versions/versioned/main.tsp +1 -1
  141. package/specs/server/versions/versioned/mockapi.ts +6 -12
  142. package/specs/special-headers/conditional-request/main.tsp +1 -1
  143. package/specs/special-headers/repeatability/main.tsp +2 -2
  144. package/specs/special-words/main.tsp +6 -6
  145. package/specs/special-words/mockapi.ts +6 -6
  146. package/specs/streaming/jsonl/main.tsp +33 -0
  147. package/specs/streaming/jsonl/mockapi.ts +32 -0
  148. package/specs/type/array/mockapi.ts +1 -1
  149. package/specs/type/dictionary/mockapi.ts +1 -1
  150. package/specs/type/enum/extensible/main.tsp +18 -2
  151. package/specs/type/enum/extensible/mockapi.ts +1 -1
  152. package/specs/type/enum/fixed/main.tsp +15 -3
  153. package/specs/type/enum/fixed/mockapi.ts +2 -2
  154. package/specs/type/model/empty/mockapi.ts +2 -2
  155. package/specs/type/model/inheritance/enum-discriminator/mockapi.ts +1 -1
  156. package/specs/type/model/inheritance/nested-discriminator/mockapi.ts +2 -2
  157. package/specs/type/model/inheritance/not-discriminated/mockapi.ts +2 -2
  158. package/specs/type/model/inheritance/recursive/mockapi.ts +1 -1
  159. package/specs/type/model/inheritance/single-discriminator/mockapi.ts +2 -2
  160. package/specs/type/model/usage/mockapi.ts +4 -4
  161. package/specs/type/model/visibility/main.tsp +17 -21
  162. package/specs/type/model/visibility/mockapi.ts +9 -10
  163. package/specs/type/property/additional-properties/main.tsp +17 -17
  164. package/specs/type/property/additional-properties/mockapi.ts +10 -10
  165. package/specs/type/property/nullable/mockapi.ts +7 -8
  166. package/specs/type/property/optionality/mockapi.ts +1 -1
  167. package/specs/type/property/value-types/mockapi.ts +3 -3
  168. package/specs/type/scalar/main.tsp +58 -9
  169. package/specs/type/scalar/mockapi.ts +9 -9
  170. package/specs/type/union/mockapi.ts +2 -2
  171. package/specs/versioning/added/mockapi.ts +6 -6
  172. package/specs/versioning/madeOptional/mockapi.ts +2 -2
  173. package/specs/versioning/removed/main.tsp +65 -3
  174. package/specs/versioning/removed/mockapi.ts +49 -2
  175. package/specs/versioning/renamedFrom/mockapi.ts +5 -5
  176. package/specs/versioning/returnTypeChangedFrom/main.tsp +17 -2
  177. package/specs/versioning/returnTypeChangedFrom/mockapi.ts +1 -1
  178. package/specs/versioning/typeChangedFrom/mockapi.ts +3 -3
  179. package/temp/.tsbuildinfo +1 -1
  180. package/tspconfig.yaml +0 -2
  181. package/dist/specs/type/model/templated/mockapi.d.ts.map +0 -1
  182. package/dist/specs/type/model/templated/mockapi.js +0 -63
  183. package/dist/specs/type/model/templated/mockapi.js.map +0 -1
  184. package/specs/type/model/templated/main.tsp +0 -130
  185. package/specs/type/model/templated/mockapi.ts +0 -66
  186. /package/dist/specs/{type/model/templated → parameters/path}/mockapi.d.ts +0 -0
package/spec-summary.md CHANGED
@@ -240,22 +240,21 @@ Expected body:
240
240
  - Endpoint: `post /encode/bytes/body/request/custom-content-type`
241
241
 
242
242
  When content type is a custom type(image/png here) and body is `bytes` the payload is a binary file.
243
- File should match packages/cadl-ranch-specs/assets/image.png
243
+ File should match packages/http-specs/assets/image.png.
244
244
 
245
245
  ### Encode_Bytes_RequestBody_default
246
246
 
247
247
  - Endpoint: `post /encode/bytes/body/request/default`
248
248
 
249
- Test default encode (base64) for bytes in a json body.
250
- Expected body:
251
- "dGVzdA==" (base64 encode of test, in JSON string)
249
+ When content type is not defined and body is `bytes` the payload is a binary stream.
250
+ Stream should match packages/http-specs/assets/image.png file.
252
251
 
253
252
  ### Encode_Bytes_RequestBody_octetStream
254
253
 
255
254
  - Endpoint: `post /encode/bytes/body/request/octet-stream`
256
255
 
257
- When content type is application/octet-stream and body is `bytes` the payload is a binary file.
258
- File should match packages/cadl-ranch-specs/assets/image.png
256
+ When content type is application/octet-stream and body is `bytes` the payload is a binary stream.
257
+ Stream should match packages/http-specs/assets/image.png file.
259
258
 
260
259
  ### Encode_Bytes_ResponseBody_base64
261
260
 
@@ -278,22 +277,21 @@ Expected body:
278
277
  - Endpoint: `get /encode/bytes/body/response/custom-content-type`
279
278
 
280
279
  When content type is a custom type(image/png here) and body is `bytes` the payload is a binary file.
281
- File should match packages/cadl-ranch-specs/assets/image.png
280
+ File should match packages/http-specs/assets/image.png
282
281
 
283
282
  ### Encode_Bytes_ResponseBody_default
284
283
 
285
284
  - Endpoint: `get /encode/bytes/body/response/default`
286
285
 
287
- Test default encode (base64) for bytes in a json body.
288
- Expected body:
289
- "dGVzdA==" (base64 encode of test, in JSON string)
286
+ When content type is not defined and body is `bytes` the payload is a binary stream.
287
+ Stream should match packages/http-specs/assets/image.png file.
290
288
 
291
289
  ### Encode_Bytes_ResponseBody_octetStream
292
290
 
293
291
  - Endpoint: `get /encode/bytes/body/response/octet-stream`
294
292
 
295
- When content type is application/octet-stream and body is `bytes` the payload is a binary file.
296
- File should match packages/cadl-ranch-specs/assets/image.png
293
+ When content type is application/octet-stream and body is `bytes` the payload is a binary stream.
294
+ Stream should match packages/http-specs/assets/image.png file.
297
295
 
298
296
  ### Encode_Datetime_Header_default
299
297
 
@@ -894,11 +892,48 @@ This test is testing sending a pipes collection format array query parameters
894
892
 
895
893
  This test is testing sending a ssv collection format array query parameters
896
894
 
897
- ### Parameters_CollectionFormat_Query_tsv
895
+ ### Parameters_Path_normal
896
+
897
+ - Endpoint: `get /parameters/path/normal/{name}`
898
+
899
+ Test case for normal path parameter.
900
+
901
+ Should generate an operation like below:
902
+
903
+ ```
904
+ normal(name: string)
905
+ ```
906
+
907
+ Expected request path:
908
+
909
+ ```
910
+ /normal/foo
911
+ ```
912
+
913
+ ### Parameters_Path_optional
914
+
915
+ - Endpoint: `get /parameters/path/optional{/name}`
916
+
917
+ Test case for optional path parameter.
918
+
919
+ Should generate an operation like below:
920
+
921
+ ```
922
+ optional(name?: string)
923
+ ```
924
+
925
+ Expected two request:
926
+ First request path:
898
927
 
899
- - Endpoint: `get /parameters/collection-format/query/tsv`
928
+ ```
929
+ /optional
930
+ ```
931
+
932
+ Second request path:
900
933
 
901
- This test is testing sending a tsv collection format array query parameters
934
+ ```
935
+ /optional/foo
936
+ ```
902
937
 
903
938
  ### Parameters_Spread_Alias_spreadAsRequestBody
904
939
 
@@ -1165,7 +1200,7 @@ Expected input body:
1165
1200
  }
1166
1201
  ],
1167
1202
  "intValue": 1,
1168
- "floatValue": 1.1,
1203
+ "floatValue": 1.25,
1169
1204
  "innerModel": {
1170
1205
  "name": "InnerMadge",
1171
1206
  "description": "innerDesc"
@@ -1193,7 +1228,7 @@ Expected response body:
1193
1228
  }
1194
1229
  ],
1195
1230
  "intValue": 1,
1196
- "floatValue": 1.1,
1231
+ "floatValue": 1.25,
1197
1232
  "innerModel": {
1198
1233
  "name": "InnerMadge",
1199
1234
  "description": "innerDesc"
@@ -1309,9 +1344,9 @@ Expected request body is a string '{cat}'.
1309
1344
  Expect request (
1310
1345
 
1311
1346
  - according to https://datatracker.ietf.org/doc/html/rfc7578#section-4.4, content-type of file part shall be labeled with
1312
- appropriate media type, cadl-ranch will check it; content-type of other parts is optional, cadl-ranch will ignore it.
1347
+ appropriate media type, server will check it; content-type of other parts is optional, server will ignore it.
1313
1348
  - according to https://datatracker.ietf.org/doc/html/rfc7578#section-4.2, filename of file part SHOULD be supplied.
1314
- If there are duplicated filename in same filedName, cadl-ranch can't parse them all.
1349
+ If there are duplicated filename in same filedName, server can't parse them all.
1315
1350
  ):
1316
1351
 
1317
1352
  ```
@@ -1334,9 +1369,9 @@ Content-Type: application/octet-stream;
1334
1369
  Expect request (
1335
1370
 
1336
1371
  - according to https://datatracker.ietf.org/doc/html/rfc7578#section-4.4, content-type of file part shall be labeled with
1337
- appropriate media type, cadl-ranch will check it; content-type of other parts is optional, cadl-ranch will ignore it.
1372
+ appropriate media type, server will check it; content-type of other parts is optional, server will ignore it.
1338
1373
  - according to https://datatracker.ietf.org/doc/html/rfc7578#section-4.2, filename of file part SHOULD be supplied.
1339
- If there are duplicated filename in same fieldName, cadl-ranch can't parse them all.
1374
+ If there are duplicated filename in same fieldName, server can't parse them all.
1340
1375
  ):
1341
1376
 
1342
1377
  ```
@@ -1364,9 +1399,9 @@ Content-Type: application/octet-stream;
1364
1399
  Expect request (
1365
1400
 
1366
1401
  - according to https://datatracker.ietf.org/doc/html/rfc7578#section-4.4, content-type of file part shall be labeled with
1367
- appropriate media type, cadl-ranch will check it; content-type of other parts is optional, cadl-ranch will ignore it.
1402
+ appropriate media type, server will check it; content-type of other parts is optional, server will ignore it.
1368
1403
  - according to https://datatracker.ietf.org/doc/html/rfc7578#section-4.2, filename of file part SHOULD be supplied.
1369
- If there are duplicated filename in same fieldName, cadl-ranch can't parse them all.
1404
+ If there are duplicated filename in same fieldName, server can't parse them all.
1370
1405
  ):
1371
1406
 
1372
1407
  ```
@@ -1423,9 +1458,9 @@ Content-Type: image/jpg
1423
1458
  Expect request (
1424
1459
 
1425
1460
  - according to https://datatracker.ietf.org/doc/html/rfc7578#section-4.4, content-type of file part shall be labeled with
1426
- appropriate media type, cadl-ranch will check it; content-type of other parts is optional, cadl-ranch will ignore it.
1461
+ appropriate media type, server will check it; content-type of other parts is optional, server will ignore it.
1427
1462
  - according to https://datatracker.ietf.org/doc/html/rfc7578#section-4.2, filename of file part SHOULD be supplied.
1428
- If there are duplicated filename in same fieldName, cadl-ranch can't parse them all.
1463
+ If there are duplicated filename in same fieldName, server can't parse them all.
1429
1464
  ):
1430
1465
 
1431
1466
  ```
@@ -1533,7 +1568,7 @@ Content-Type: application/octet-stream
1533
1568
 
1534
1569
  - Endpoint: `post /multipart/form-data/complex-parts-with-httppart`
1535
1570
 
1536
- For File part, filename will not be checked but it is necessary otherwise cadl-ranch can't parse it;
1571
+ For File part, filename will not be checked but it is necessary otherwise server can't parse it;
1537
1572
  content-type will be checked with value "application/octet-stream". Expect request:
1538
1573
 
1539
1574
  ```
@@ -1606,9 +1641,9 @@ Content-Type: text/plain
1606
1641
  Expect request (
1607
1642
 
1608
1643
  - according to https://datatracker.ietf.org/doc/html/rfc7578#section-4.4, content-type of file part shall be labeled with
1609
- appropriate media type, cadl-ranch will check it; content-type of other parts is optional, cadl-ranch will ignore it.
1644
+ appropriate media type, server will check it; content-type of other parts is optional, server will ignore it.
1610
1645
  - according to https://datatracker.ietf.org/doc/html/rfc7578#section-4.2, filename of file part SHOULD be supplied.
1611
- If there are duplicated filename in same fieldName, cadl-ranch can't parse them all.
1646
+ If there are duplicated filename in same fieldName, server can't parse them all.
1612
1647
  ):
1613
1648
 
1614
1649
  ```
@@ -1638,9 +1673,9 @@ Content-Type: application/octet-stream
1638
1673
  Please send request twice, first time with only profileImage, second time with both profileImage and picture(
1639
1674
 
1640
1675
  - according to https://datatracker.ietf.org/doc/html/rfc7578#section-4.4, content-type of file part shall be labeled with
1641
- appropriate media type, cadl-ranch will check it; content-type of other parts is optional, cadl-ranch will ignore it.
1676
+ appropriate media type, server will check it; content-type of other parts is optional, server will ignore it.
1642
1677
  - according to https://datatracker.ietf.org/doc/html/rfc7578#section-4.2, filename of file part SHOULD be supplied.
1643
- If there are duplicated filename in same fieldName, cadl-ranch can't parse them all.
1678
+ If there are duplicated filename in same fieldName, server can't parse them all.
1644
1679
  ):
1645
1680
 
1646
1681
  ```
@@ -1661,6 +1696,219 @@ Content-Type: application/octet-stream
1661
1696
  --abcde12345--
1662
1697
  ```
1663
1698
 
1699
+ ### Payload_Pageable_ServerDrivenPagination_ContinuationToken_requestHeaderResponseBody
1700
+
1701
+ - Endpoint: `get /payload/pageable/server-driven-pagination/continuationtoken/request-header-response-body`
1702
+
1703
+ Test case for using continuation token as pagination. Continuation token is passed in the request header and response body.
1704
+
1705
+ Two requests need to be tested.
1706
+
1707
+ 1. Initial request:
1708
+ Expected route: /payload/pageable/server-driven-pagination/continuationtoken/request-header-response-body?bar=bar
1709
+
1710
+ Expected request header:
1711
+ foo=foo
1712
+
1713
+ Expected response body:
1714
+
1715
+ ```json
1716
+ {
1717
+ "pets": [
1718
+ { "id": "1", "name": "dog" },
1719
+ { "id": "2", "name": "cat" }
1720
+ ],
1721
+ "nextToken": "page2"
1722
+ }
1723
+ ```
1724
+
1725
+ 2. Next page request:
1726
+ Expected route: /payload/pageable/server-driven-pagination/continuationtoken/request-header-response-body?bar=bar
1727
+
1728
+ Expected request header:
1729
+ token=page2
1730
+ foo=foo
1731
+
1732
+ Expected response body:
1733
+
1734
+ ```json
1735
+ {
1736
+ "pets": [
1737
+ { "id": "3", "name": "bird" },
1738
+ { "id": "4", "name": "fish" }
1739
+ ]
1740
+ }
1741
+ ```
1742
+
1743
+ ### Payload_Pageable_ServerDrivenPagination_ContinuationToken_requestHeaderResponseHeader
1744
+
1745
+ - Endpoint: `get /payload/pageable/server-driven-pagination/continuationtoken/request-header-response-header`
1746
+
1747
+ Test case for using continuation token as pagination. Continuation token is passed in the request header and response header.
1748
+
1749
+ Two requests need to be tested.
1750
+
1751
+ 1. Initial request:
1752
+ Expected route: /payload/pageable/server-driven-pagination/continuationtoken/request-header-response-header?bar=bar
1753
+
1754
+ Expected request header:
1755
+ foo=foo
1756
+
1757
+ Expected response body:
1758
+
1759
+ ```json
1760
+ {
1761
+ "pets": [
1762
+ { "id": "1", "name": "dog" },
1763
+ { "id": "2", "name": "cat" }
1764
+ ]
1765
+ }
1766
+ ```
1767
+
1768
+ Expected response header:
1769
+ next-token=page2
1770
+
1771
+ 2. Next page request:
1772
+ Expected route: /payload/pageable/server-driven-pagination/continuationtoken/request-header-response-header?bar=bar
1773
+
1774
+ Expected request header:
1775
+ token=page2
1776
+ foo=foo
1777
+
1778
+ Expected response body:
1779
+
1780
+ ```json
1781
+ {
1782
+ "pets": [
1783
+ { "id": "3", "name": "bird" },
1784
+ { "id": "4", "name": "fish" }
1785
+ ]
1786
+ }
1787
+ ```
1788
+
1789
+ ### Payload_Pageable_ServerDrivenPagination_ContinuationToken_requestQueryResponseBody
1790
+
1791
+ - Endpoint: `get /payload/pageable/server-driven-pagination/continuationtoken/request-query-response-body`
1792
+
1793
+ Test case for using continuation token as pagination. Continuation token is passed in the request query and response body.
1794
+
1795
+ Two requests need to be tested.
1796
+
1797
+ 1. Initial request:
1798
+ Expected route: /payload/pageable/server-driven-pagination/continuationtoken/request-query-response-body?bar=bar
1799
+
1800
+ Expected request header:
1801
+ foo=foo
1802
+
1803
+ Expected response body:
1804
+
1805
+ ```json
1806
+ {
1807
+ "pets": [
1808
+ { "id": "1", "name": "dog" },
1809
+ { "id": "2", "name": "cat" }
1810
+ ],
1811
+ "nextToken": "page2"
1812
+ }
1813
+ ```
1814
+
1815
+ 2. Next page request:
1816
+ Expected route: /payload/pageable/server-driven-pagination/continuationtoken/request-query-response-body?bar=bar&token=page2
1817
+
1818
+ Expected request header:
1819
+ foo=foo
1820
+
1821
+ Expected response body:
1822
+
1823
+ ```json
1824
+ {
1825
+ "pets": [
1826
+ { "id": "3", "name": "bird" },
1827
+ { "id": "4", "name": "fish" }
1828
+ ]
1829
+ }
1830
+ ```
1831
+
1832
+ ### Payload_Pageable_ServerDrivenPagination_ContinuationToken_requestQueryResponseHeader
1833
+
1834
+ - Endpoint: `get /payload/pageable/server-driven-pagination/continuationtoken/request-query-response-header`
1835
+
1836
+ Test case for using continuation token as pagination. Continuation token is passed in the request query and response header.
1837
+
1838
+ Two requests need to be tested.
1839
+
1840
+ 1. Initial request:
1841
+ Expected route: /payload/pageable/server-driven-pagination/continuationtoken/request-query-response-header?bar=bar
1842
+
1843
+ Expected request header:
1844
+ foo=foo
1845
+
1846
+ Expected response body:
1847
+
1848
+ ```json
1849
+ {
1850
+ "pets": [
1851
+ { "id": "1", "name": "dog" },
1852
+ { "id": "2", "name": "cat" }
1853
+ ]
1854
+ }
1855
+ ```
1856
+
1857
+ Expected response header:
1858
+ next-token=page2
1859
+
1860
+ 2. Next page request:
1861
+ Expected route: /payload/pageable/server-driven-pagination/continuationtoken/request-query-response-header?bar=bar&token=page2
1862
+
1863
+ Expected request header:
1864
+ foo=foo
1865
+
1866
+ Expected response body:
1867
+
1868
+ ```json
1869
+ {
1870
+ "pets": [
1871
+ { "id": "3", "name": "bird" },
1872
+ { "id": "4", "name": "fish" }
1873
+ ]
1874
+ }
1875
+ ```
1876
+
1877
+ ### Payload_Pageable_ServerDrivenPagination_link
1878
+
1879
+ - Endpoint: `get /payload/pageable/server-driven-pagination/link`
1880
+
1881
+ Test case for using link as pagination.
1882
+
1883
+ Two requests need to be tested.
1884
+
1885
+ 1. Initial request:
1886
+ Expected route: /payload/pageable/server-driven-pagination/link
1887
+ Expected response body:
1888
+
1889
+ ```json
1890
+ {
1891
+ "pets": [
1892
+ { "id": "1", "name": "dog" },
1893
+ { "id": "2", "name": "cat" }
1894
+ ],
1895
+ "next": "http://[host]:[port]/payload/pageable/server-driven-pagination/link/nextPage"
1896
+ }
1897
+ ```
1898
+
1899
+ 2. Next page request:
1900
+ Expected route: /payload/pageable/server-driven-pagination/link/nextPage
1901
+ Expected response body:
1902
+
1903
+ ```json
1904
+ {
1905
+ "pets": [
1906
+ { "id": "3", "name": "bird" },
1907
+ { "id": "4", "name": "fish" }
1908
+ ]
1909
+ }
1910
+ ```
1911
+
1664
1912
  ### Payload_Xml_ModelWithArrayOfModelValue_get
1665
1913
 
1666
1914
  - Endpoint: `get /payload/xml/modelWithArrayOfModel`
@@ -2047,6 +2295,40 @@ Expected request body:
2047
2295
  </SimpleModel>
2048
2296
  ```
2049
2297
 
2298
+ ### Response_StatusCodeRange_errorResponseStatusCode404
2299
+
2300
+ - Endpoint: `get /response/status-code-range/error-response-status-code-404`
2301
+
2302
+ Test case for range of status code in error response.
2303
+
2304
+ Verify that the result of the API is an error/exception in client, and the error response can be de-serialized to NotFoundError model (instead of Standard4XXError model).
2305
+
2306
+ Expected status code 404 and response body:
2307
+
2308
+ ```json
2309
+ {
2310
+ "code": "not-found",
2311
+ "resourceId": "resource1"
2312
+ }
2313
+ ```
2314
+
2315
+ ### Response_StatusCodeRange_errorResponseStatusCodeInRange
2316
+
2317
+ - Endpoint: `get /response/status-code-range/error-response-status-code-in-range`
2318
+
2319
+ Test case for range of status code in error response.
2320
+
2321
+ Verify that the result of the API is an error/exception in client, and the error response can be de-serialized to ErrorInRange model (instead of DefaultError model).
2322
+
2323
+ Expected status code 494 and response body:
2324
+
2325
+ ```json
2326
+ {
2327
+ "code": "request-header-too-large",
2328
+ "message": "Request header too large"
2329
+ }
2330
+ ```
2331
+
2050
2332
  ### Routes_fixed
2051
2333
 
2052
2334
  - Endpoint: `get /routes/fixed`
@@ -2083,7 +2365,7 @@ Expected path: /routes/path/explicit/a
2083
2365
 
2084
2366
  Test label expansion with explode: true when passed an array value.
2085
2367
  Param value: ["a","b"]
2086
- Expected path: /routes/label/explode/array.a.b
2368
+ Expected path: /routes/path/label/explode/array.a.b
2087
2369
 
2088
2370
  ### Routes_PathParameters_LabelExpansion_Explode_primitive
2089
2371
 
@@ -2091,7 +2373,7 @@ Expected path: /routes/label/explode/array.a.b
2091
2373
 
2092
2374
  Test label expansion with explode: true when passed a primitive value.
2093
2375
  Param value: "a"
2094
- Expected path: /routes/label/explode/primitive.a
2376
+ Expected path: /routes/path/label/explode/primitive.a
2095
2377
 
2096
2378
  ### Routes_PathParameters_LabelExpansion_Explode_record
2097
2379
 
@@ -2099,7 +2381,7 @@ Expected path: /routes/label/explode/primitive.a
2099
2381
 
2100
2382
  Test label expansion with explode: true when passed a record value.
2101
2383
  Param value: {a: 1, b: 2}
2102
- Expected path: /routes/label/explode/record.a=1.b=2
2384
+ Expected path: /routes/path/label/explode/record.a=1.b=2
2103
2385
 
2104
2386
  ### Routes_PathParameters_LabelExpansion_Standard_array
2105
2387
 
@@ -2107,7 +2389,7 @@ Expected path: /routes/label/explode/record.a=1.b=2
2107
2389
 
2108
2390
  Test label expansion with explode: false when passed an array value.
2109
2391
  Param value: ["a","b"]
2110
- Expected path: /routes/label/standard/array.a,b
2392
+ Expected path: /routes/path/label/standard/array.a,b
2111
2393
 
2112
2394
  ### Routes_PathParameters_LabelExpansion_Standard_primitive
2113
2395
 
@@ -2115,7 +2397,7 @@ Expected path: /routes/label/standard/array.a,b
2115
2397
 
2116
2398
  Test label expansion with explode: false when passed a primitive value.
2117
2399
  Param value: "a"
2118
- Expected path: /routes/label/standard/primitive.a
2400
+ Expected path: /routes/path/label/standard/primitive.a
2119
2401
 
2120
2402
  ### Routes_PathParameters_LabelExpansion_Standard_record
2121
2403
 
@@ -2123,7 +2405,7 @@ Expected path: /routes/label/standard/primitive.a
2123
2405
 
2124
2406
  Test label expansion with explode: false when passed a record value.
2125
2407
  Param value: {a: 1, b: 2}
2126
- Expected path: /routes/label/standard/record.a,1,b,2
2408
+ Expected path: /routes/path/label/standard/record.a,1,b,2
2127
2409
 
2128
2410
  ### Routes_PathParameters_MatrixExpansion_Explode_array
2129
2411
 
@@ -2131,7 +2413,7 @@ Expected path: /routes/label/standard/record.a,1,b,2
2131
2413
 
2132
2414
  Test matrix expansion with explode: true when passed an array value.
2133
2415
  Param value: ["a","b"]
2134
- Expected path: /routes/matrix/explode/array;a.b
2416
+ Expected path: /routes/path/matrix/explode/array;param=a;param=b
2135
2417
 
2136
2418
  ### Routes_PathParameters_MatrixExpansion_Explode_primitive
2137
2419
 
@@ -2139,7 +2421,7 @@ Expected path: /routes/matrix/explode/array;a.b
2139
2421
 
2140
2422
  Test matrix expansion with explode: true when passed a primitive value.
2141
2423
  Param value: "a"
2142
- Expected path: /routes/matrix/explode/primitive;a
2424
+ Expected path: /routes/path/matrix/explode/primitive;param=a
2143
2425
 
2144
2426
  ### Routes_PathParameters_MatrixExpansion_Explode_record
2145
2427
 
@@ -2147,7 +2429,7 @@ Expected path: /routes/matrix/explode/primitive;a
2147
2429
 
2148
2430
  Test matrix expansion with explode: true when passed a record value.
2149
2431
  Param value: {a: 1, b: 2}
2150
- Expected path: /routes/matrix/explode/record;a=1;b=2
2432
+ Expected path: /routes/path/matrix/explode/record;a=1;b=2
2151
2433
 
2152
2434
  ### Routes_PathParameters_MatrixExpansion_Standard_array
2153
2435
 
@@ -2155,7 +2437,7 @@ Expected path: /routes/matrix/explode/record;a=1;b=2
2155
2437
 
2156
2438
  Test matrix expansion with explode: false when passed an array value.
2157
2439
  Param value: ["a","b"]
2158
- Expected path: /routes/matrix/standard/array;a,b
2440
+ Expected path: /routes/path/matrix/standard/array;param=a;param=b
2159
2441
 
2160
2442
  ### Routes_PathParameters_MatrixExpansion_Standard_primitive
2161
2443
 
@@ -2163,7 +2445,7 @@ Expected path: /routes/matrix/standard/array;a,b
2163
2445
 
2164
2446
  Test matrix expansion with explode: false when passed a primitive value.
2165
2447
  Param value: "a"
2166
- Expected path: /routes/matrix/standard/primitive;a
2448
+ Expected path: /routes/path/matrix/standard/primitive;param=a
2167
2449
 
2168
2450
  ### Routes_PathParameters_MatrixExpansion_Standard_record
2169
2451
 
@@ -2171,7 +2453,7 @@ Expected path: /routes/matrix/standard/primitive;a
2171
2453
 
2172
2454
  Test matrix expansion with explode: false when passed a record value.
2173
2455
  Param value: {a: 1, b: 2}
2174
- Expected path: /routes/matrix/standard/record;a,1,b,2
2456
+ Expected path: /routes/path/matrix/standard/record;a=1;b=2
2175
2457
 
2176
2458
  ### Routes_PathParameters_PathExpansion_Explode_array
2177
2459
 
@@ -2179,7 +2461,7 @@ Expected path: /routes/matrix/standard/record;a,1,b,2
2179
2461
 
2180
2462
  Test path expansion with explode: true when passed an array value.
2181
2463
  Param value: ["a","b"]
2182
- Expected path: /routes/path/explode/array/a/b
2464
+ Expected path: /routes/path/path/explode/array/a/b
2183
2465
 
2184
2466
  ### Routes_PathParameters_PathExpansion_Explode_primitive
2185
2467
 
@@ -2187,7 +2469,7 @@ Expected path: /routes/path/explode/array/a/b
2187
2469
 
2188
2470
  Test path expansion with explode: true when passed a primitive value.
2189
2471
  Param value: "a"
2190
- Expected path: /routes/path/explode/primitive/a
2472
+ Expected path: /routes/path/path/explode/primitive/a
2191
2473
 
2192
2474
  ### Routes_PathParameters_PathExpansion_Explode_record
2193
2475
 
@@ -2195,7 +2477,7 @@ Expected path: /routes/path/explode/primitive/a
2195
2477
 
2196
2478
  Test path expansion with explode: true when passed a record value.
2197
2479
  Param value: {a: 1, b: 2}
2198
- Expected path: /routes/path/explode/record/a=1/b=2
2480
+ Expected path: /routes/path/path/explode/record/a=1/b=2
2199
2481
 
2200
2482
  ### Routes_PathParameters_PathExpansion_Standard_array
2201
2483
 
@@ -2203,7 +2485,7 @@ Expected path: /routes/path/explode/record/a=1/b=2
2203
2485
 
2204
2486
  Test path expansion with explode: false when passed an array value.
2205
2487
  Param value: ["a","b"]
2206
- Expected path: /routes/path/standard/array/a,b
2488
+ Expected path: /routes/path/path/standard/array/a,b
2207
2489
 
2208
2490
  ### Routes_PathParameters_PathExpansion_Standard_primitive
2209
2491
 
@@ -2211,7 +2493,7 @@ Expected path: /routes/path/standard/array/a,b
2211
2493
 
2212
2494
  Test path expansion with explode: false when passed a primitive value.
2213
2495
  Param value: "a"
2214
- Expected path: /routes/path/standard/primitive/a
2496
+ Expected path: /routes/path/path/standard/primitive/a
2215
2497
 
2216
2498
  ### Routes_PathParameters_PathExpansion_Standard_record
2217
2499
 
@@ -2219,7 +2501,7 @@ Expected path: /routes/path/standard/primitive/a
2219
2501
 
2220
2502
  Test path expansion with explode: false when passed a record value.
2221
2503
  Param value: {a: 1, b: 2}
2222
- Expected path: /routes/path/standard/record/a,1,b,2
2504
+ Expected path: /routes/path/path/standard/record/a,1,b,2
2223
2505
 
2224
2506
  ### Routes_PathParameters_ReservedExpansion_annotation
2225
2507
 
@@ -2243,7 +2525,7 @@ Expected path: "/routes/path/reserved-expansion/template/foo/bar%20baz"
2243
2525
 
2244
2526
  Test simple expansion with explode: true when passed an array value.
2245
2527
  Param value: ["a","b"]
2246
- Expected path: /routes/simple/explode/arraya.b
2528
+ Expected path: /routes/path/simple/explode/arraya.b
2247
2529
 
2248
2530
  ### Routes_PathParameters_SimpleExpansion_Explode_primitive
2249
2531
 
@@ -2251,7 +2533,7 @@ Expected path: /routes/simple/explode/arraya.b
2251
2533
 
2252
2534
  Test simple expansion with explode: true when passed a primitive value.
2253
2535
  Param value: "a"
2254
- Expected path: /routes/simple/explode/primitivea
2536
+ Expected path: /routes/path/simple/explode/primitivea
2255
2537
 
2256
2538
  ### Routes_PathParameters_SimpleExpansion_Explode_record
2257
2539
 
@@ -2259,7 +2541,7 @@ Expected path: /routes/simple/explode/primitivea
2259
2541
 
2260
2542
  Test simple expansion with explode: true when passed a record value.
2261
2543
  Param value: {a: 1, b: 2}
2262
- Expected path: /routes/simple/explode/recorda=1,b=2
2544
+ Expected path: /routes/path/simple/explode/recorda=1,b=2
2263
2545
 
2264
2546
  ### Routes_PathParameters_SimpleExpansion_Standard_array
2265
2547
 
@@ -2267,7 +2549,7 @@ Expected path: /routes/simple/explode/recorda=1,b=2
2267
2549
 
2268
2550
  Test simple expansion with explode: false when passed an array value.
2269
2551
  Param value: ["a","b"]
2270
- Expected path: /routes/simple/standard/arraya,b
2552
+ Expected path: /routes/path/simple/standard/arraya,b
2271
2553
 
2272
2554
  ### Routes_PathParameters_SimpleExpansion_Standard_primitive
2273
2555
 
@@ -2275,7 +2557,7 @@ Expected path: /routes/simple/standard/arraya,b
2275
2557
 
2276
2558
  Test simple expansion with explode: false when passed a primitive value.
2277
2559
  Param value: "a"
2278
- Expected path: /routes/simple/standard/primitivea
2560
+ Expected path: /routes/path/simple/standard/primitivea
2279
2561
 
2280
2562
  ### Routes_PathParameters_SimpleExpansion_Standard_record
2281
2563
 
@@ -2283,7 +2565,7 @@ Expected path: /routes/simple/standard/primitivea
2283
2565
 
2284
2566
  Test simple expansion with explode: false when passed a record value.
2285
2567
  Param value: {a: 1, b: 2}
2286
- Expected path: /routes/simple/standard/recorda,1,b,2
2568
+ Expected path: /routes/path/simple/standard/recorda,1,b,2
2287
2569
 
2288
2570
  ### Routes_PathParameters_templateOnly
2289
2571
 
@@ -3290,6 +3572,18 @@ Verify that the name "with" works. Send this parameter to pass with value `ok`.
3290
3572
 
3291
3573
  Verify that the name "yield" works. Send this parameter to pass with value `ok`.
3292
3574
 
3575
+ ### Streaming_Jsonl_Basic_receive
3576
+
3577
+ - Endpoint: `get /streaming/jsonl/basic/receive`
3578
+
3579
+ Basic jsonl streaming for response.
3580
+
3581
+ ### Streaming_Jsonl_Basic_send
3582
+
3583
+ - Endpoint: `post /streaming/jsonl/basic/send`
3584
+
3585
+ Basic jsonl streaming for request.
3586
+
3293
3587
  ### Type_Array_BooleanValue_get
3294
3588
 
3295
3589
  - Endpoint: `get /type/array/boolean`
@@ -4323,77 +4617,6 @@ Expected input body:
4323
4617
  }
4324
4618
  ```
4325
4619
 
4326
- ### Type_Model_Templated_float32Type
4327
-
4328
- - Endpoint: `put /type/model/templated/float32ValuesType`
4329
-
4330
- Expected input body:
4331
-
4332
- ```json
4333
- {
4334
- "kind": "Float32Values",
4335
- "values": [0.5],
4336
- "value": 0.5
4337
- }
4338
- ```
4339
-
4340
- Expected response body:
4341
-
4342
- ```json
4343
- {
4344
- "kind": "Float32Values",
4345
- "values": [0.5],
4346
- "value": 0.5
4347
- }
4348
- ```
4349
-
4350
- ### Type_Model_Templated_int32Type
4351
-
4352
- - Endpoint: `put /type/model/templated/int32ValuesType`
4353
-
4354
- Expected input body:
4355
-
4356
- ```json
4357
- {
4358
- "kind": "Int32Values",
4359
- "values": [1234],
4360
- "value": 1234
4361
- }
4362
- ```
4363
-
4364
- Expected response body:
4365
-
4366
- ```json
4367
- {
4368
- "kind": "Int32Values",
4369
- "values": [1234],
4370
- "value": 1234
4371
- }
4372
- ```
4373
-
4374
- ### Type_Model_Templated_numericType
4375
-
4376
- - Endpoint: `put /type/model/templated/numericType`
4377
-
4378
- Expected input body:
4379
-
4380
- ```json
4381
- {
4382
- "kind": "Int32Values",
4383
- "values": [1234],
4384
- "value": 1234
4385
- }
4386
- ```
4387
-
4388
- Expected response body:
4389
-
4390
- ```json
4391
- {
4392
- "values": [1234],
4393
- "value": 1234
4394
- }
4395
- ```
4396
-
4397
4620
  ### Type_Model_Usage_input
4398
4621
 
4399
4622
  - Endpoint: `get /type/model/usage/input`
@@ -4430,13 +4653,7 @@ Expected input body:
4430
4653
  - Endpoint: `get /type/model/visibility`
4431
4654
 
4432
4655
  Generate and receive output model with readonly properties.
4433
- Expected input body:
4434
-
4435
- ```json
4436
- {
4437
- "queryProp": 123
4438
- }
4439
- ```
4656
+ Expected no body with `?queryProp=123`.
4440
4657
 
4441
4658
  Expected response body:
4442
4659
 
@@ -4451,13 +4668,7 @@ Expected response body:
4451
4668
  - Endpoint: `head /type/model/visibility`
4452
4669
 
4453
4670
  Generate abd send put model with write/create properties.
4454
- Expected input body:
4455
-
4456
- ```json
4457
- {
4458
- "queryProp": 123
4459
- }
4460
- ```
4671
+ Expected no body with `?queryProp=123`.
4461
4672
 
4462
4673
  ### Type_Model_Visibility_patchModel
4463
4674
 
@@ -5154,42 +5365,6 @@ Expected input body:
5154
5365
  }
5155
5366
  ```
5156
5367
 
5157
- ### Type_Property_AdditionalProperties_SpreadRecordDiscriminatedUnion_get
5158
-
5159
- - Endpoint: `get /type/property/additionalProperties/spreadRecordDiscriminatedUnion`
5160
-
5161
- Expected response body:
5162
-
5163
- ```json
5164
- {
5165
- "name": "abc",
5166
- "prop1": { "kind": "kind0", "fooProp": "abc" },
5167
- "prop2": {
5168
- "kind": "kind1",
5169
- "start": "2021-01-01T00:00:00Z",
5170
- "end": "2021-01-02T00:00:00Z"
5171
- }
5172
- }
5173
- ```
5174
-
5175
- ### Type_Property_AdditionalProperties_SpreadRecordDiscriminatedUnion_put
5176
-
5177
- - Endpoint: `put /type/property/additionalProperties/spreadRecordDiscriminatedUnion`
5178
-
5179
- Expected input body:
5180
-
5181
- ```json
5182
- {
5183
- "name": "abc",
5184
- "prop1": { "kind": "kind0", "fooProp": "abc" },
5185
- "prop2": {
5186
- "kind": "kind1",
5187
- "start": "2021-01-01T00:00:00Z",
5188
- "end": "2021-01-02T00:00:00Z"
5189
- }
5190
- }
5191
- ```
5192
-
5193
5368
  ### Type_Property_AdditionalProperties_SpreadRecordNonDiscriminatedUnion_get
5194
5369
 
5195
5370
  - Endpoint: `get /type/property/additionalProperties/spreadRecordNonDiscriminatedUnion`
@@ -7399,6 +7574,49 @@ Expected request body:
7399
7574
  { "prop": "foo" }
7400
7575
  ```
7401
7576
 
7577
+ ### Versioning_Removed_modelV3
7578
+
7579
+ - Endpoint: `post /versioning/removed/api-version:{version}/v3`
7580
+
7581
+ path: "/versioning/removed/api-version:v1/v3"
7582
+ Expected request body:
7583
+
7584
+ ```json
7585
+ { "id": "123", "enumProp": "enumMemberV1" }
7586
+ ```
7587
+
7588
+ Expected response body:
7589
+
7590
+ ```json
7591
+ { "id": "123", "enumProp": "enumMemberV1" }
7592
+ ```
7593
+
7594
+ path: "/versioning/removed/api-version:v2preview/v3"
7595
+ Expected request body:
7596
+
7597
+ ```json
7598
+ { "id": "123" }
7599
+ ```
7600
+
7601
+ Expected response body:
7602
+
7603
+ ```json
7604
+ { "id": "123" }
7605
+ ```
7606
+
7607
+ path: "/versioning/removed/api-version:v2/v3"
7608
+ Expected request body:
7609
+
7610
+ ```json
7611
+ { "id": "123", "enumProp": "enumMemberV1" }
7612
+ ```
7613
+
7614
+ Expected response body:
7615
+
7616
+ ```json
7617
+ { "id": "123", "enumProp": "enumMemberV1" }
7618
+ ```
7619
+
7402
7620
  ### Versioning_Removed_v2
7403
7621
 
7404
7622
  - Endpoint: `post /versioning/removed/api-version:{version}/v2`