@typespec/http-specs 0.1.0-alpha.35-dev.3 → 0.1.0-alpha.35-dev.5

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.
@@ -2,6 +2,10 @@ import { MockRequest, passOnCode, passOnSuccess, ScenarioMockApi, xml } from "@t
2
2
 
3
3
  export const Scenarios: Record<string, ScenarioMockApi> = {};
4
4
 
5
+ // ────────────────────────────────────────────────────────────────────────────
6
+ // §1 — Primitive properties
7
+ // ────────────────────────────────────────────────────────────────────────────
8
+
5
9
  export const simpleModel = `
6
10
  <SimpleModel>
7
11
  <name>foo</name>
@@ -9,6 +13,51 @@ export const simpleModel = `
9
13
  </SimpleModel>
10
14
  `;
11
15
 
16
+ export const modelWithRenamedProperty = `
17
+ <ModelWithRenamedProperty>
18
+ <renamedTitle>foo</renamedTitle>
19
+ <author>bar</author>
20
+ </ModelWithRenamedProperty>
21
+ `;
22
+
23
+ export const modelWithRenamedFields = `
24
+ <ModelWithRenamedFieldsSrc>
25
+ <InputData>
26
+ <name>foo</name>
27
+ <age>123</age>
28
+ </InputData>
29
+ <OutputData>
30
+ <name>bar</name>
31
+ <age>456</age>
32
+ </OutputData>
33
+ </ModelWithRenamedFieldsSrc>
34
+ `;
35
+
36
+ // ────────────────────────────────────────────────────────────────────────────
37
+ // §2 — Nested models
38
+ // ────────────────────────────────────────────────────────────────────────────
39
+
40
+ export const modelWithNestedModel = `
41
+ <ModelWithNestedModel>
42
+ <nested>
43
+ <name>foo</name>
44
+ <age>123</age>
45
+ </nested>
46
+ </ModelWithNestedModel>
47
+ `;
48
+
49
+ export const modelWithRenamedNestedModel = `
50
+ <ModelWithRenamedNestedModel>
51
+ <author>
52
+ <name>foo</name>
53
+ </author>
54
+ </ModelWithRenamedNestedModel>
55
+ `;
56
+
57
+ // ────────────────────────────────────────────────────────────────────────────
58
+ // §3 — Array of primitive types
59
+ // ────────────────────────────────────────────────────────────────────────────
60
+
12
61
  export const modelWithSimpleArrays = `
13
62
  <ModelWithSimpleArrays>
14
63
  <colors>
@@ -23,33 +72,6 @@ export const modelWithSimpleArrays = `
23
72
  </ModelWithSimpleArrays>
24
73
  `;
25
74
 
26
- export const modelWithArrayOfModel = `
27
- <ModelWithArrayOfModel>
28
- <items>
29
- <SimpleModel>
30
- <name>foo</name>
31
- <age>123</age>
32
- </SimpleModel>
33
- <SimpleModel>
34
- <name>bar</name>
35
- <age>456</age>
36
- </SimpleModel>
37
- </items>
38
- </ModelWithArrayOfModel>
39
- `;
40
-
41
- export const modelWithOptionalField = `
42
- <ModelWithOptionalField>
43
- <item>widget</item>
44
- </ModelWithOptionalField>
45
- `;
46
-
47
- export const modelWithAttributes = `
48
- <ModelWithAttributes id1="123" id2="foo">
49
- <enabled>true</enabled>
50
- </ModelWithAttributes>
51
- `;
52
-
53
75
  export const modelWithUnwrappedArray = `
54
76
  <ModelWithUnwrappedArray>
55
77
  <colors>red</colors>
@@ -74,31 +96,150 @@ export const modelWithRenamedArrays = `
74
96
  </ModelWithRenamedArrays>
75
97
  `;
76
98
 
77
- export const modelWithRenamedFields = `
78
- <ModelWithRenamedFieldsSrc>
79
- <InputData>
99
+ export const modelWithWrappedPrimitiveCustomItemNames = `
100
+ <ModelWithWrappedPrimitiveCustomItemNames>
101
+ <ItemsTags>
102
+ <ItemName>fiction</ItemName>
103
+ <ItemName>classic</ItemName>
104
+ </ItemsTags>
105
+ </ModelWithWrappedPrimitiveCustomItemNames>
106
+ `;
107
+
108
+ // ────────────────────────────────────────────────────────────────────────────
109
+ // §4 — Array of complex types
110
+ // ────────────────────────────────────────────────────────────────────────────
111
+
112
+ export const modelWithArrayOfModel = `
113
+ <ModelWithArrayOfModel>
114
+ <items>
115
+ <SimpleModel>
116
+ <name>foo</name>
117
+ <age>123</age>
118
+ </SimpleModel>
119
+ <SimpleModel>
120
+ <name>bar</name>
121
+ <age>456</age>
122
+ </SimpleModel>
123
+ </items>
124
+ </ModelWithArrayOfModel>
125
+ `;
126
+
127
+ export const modelWithUnwrappedModelArray = `
128
+ <ModelWithUnwrappedModelArray>
129
+ <items>
80
130
  <name>foo</name>
81
131
  <age>123</age>
82
- </InputData>
83
- <OutputData>
132
+ </items>
133
+ <items>
84
134
  <name>bar</name>
85
135
  <age>456</age>
86
- </OutputData>
87
- </ModelWithRenamedFieldsSrc>
136
+ </items>
137
+ </ModelWithUnwrappedModelArray>
88
138
  `;
89
139
 
90
- export const modelWithEmptyArray = `
91
- <ModelWithEmptyArray>
92
- <items />
93
- </ModelWithEmptyArray>
140
+ export const modelWithRenamedWrappedModelArray = `
141
+ <ModelWithRenamedWrappedModelArray>
142
+ <AllItems>
143
+ <SimpleModel>
144
+ <name>foo</name>
145
+ <age>123</age>
146
+ </SimpleModel>
147
+ <SimpleModel>
148
+ <name>bar</name>
149
+ <age>456</age>
150
+ </SimpleModel>
151
+ </AllItems>
152
+ </ModelWithRenamedWrappedModelArray>
153
+ `;
154
+
155
+ export const modelWithRenamedUnwrappedModelArray = `
156
+ <ModelWithRenamedUnwrappedModelArray>
157
+ <ModelItem>
158
+ <name>foo</name>
159
+ <age>123</age>
160
+ </ModelItem>
161
+ <ModelItem>
162
+ <name>bar</name>
163
+ <age>456</age>
164
+ </ModelItem>
165
+ </ModelWithRenamedUnwrappedModelArray>
166
+ `;
167
+
168
+ export const modelWithRenamedWrappedAndItemModelArray = `
169
+ <ModelWithRenamedWrappedAndItemModelArray>
170
+ <AllBooks>
171
+ <XmlBook>
172
+ <title>The Great Gatsby</title>
173
+ </XmlBook>
174
+ <XmlBook>
175
+ <title>Les Miserables</title>
176
+ </XmlBook>
177
+ </AllBooks>
178
+ </ModelWithRenamedWrappedAndItemModelArray>
179
+ `;
180
+
181
+ // ────────────────────────────────────────────────────────────────────────────
182
+ // §5 — Attributes
183
+ // ────────────────────────────────────────────────────────────────────────────
184
+
185
+ export const modelWithAttributes = `
186
+ <ModelWithAttributes id1="123" id2="foo">
187
+ <enabled>true</enabled>
188
+ </ModelWithAttributes>
189
+ `;
190
+
191
+ export const modelWithRenamedAttribute = `
192
+ <ModelWithRenamedAttribute xml-id="123">
193
+ <title>The Great Gatsby</title>
194
+ <author>F. Scott Fitzgerald</author>
195
+ </ModelWithRenamedAttribute>
94
196
  `;
95
197
 
198
+ // ────────────────────────────────────────────────────────────────────────────
199
+ // §6/§7 — Namespace and prefix
200
+ // ────────────────────────────────────────────────────────────────────────────
201
+
202
+ export const modelWithNamespace = `
203
+ <smp:ModelWithNamespace xmlns:smp="http://example.com/schema">
204
+ <id>123</id>
205
+ <title>The Great Gatsby</title>
206
+ </smp:ModelWithNamespace>
207
+ `;
208
+
209
+ export const modelWithNamespaceOnProperties = `
210
+ <smp:ModelWithNamespaceOnProperties xmlns:smp="http://example.com/schema" xmlns:ns2="http://example.com/ns2">
211
+ <id>123</id>
212
+ <smp:title>The Great Gatsby</smp:title>
213
+ <ns2:author>F. Scott Fitzgerald</ns2:author>
214
+ </smp:ModelWithNamespaceOnProperties>
215
+ `;
216
+
217
+ // ────────────────────────────────────────────────────────────────────────────
218
+ // §8 — Text content
219
+ // ────────────────────────────────────────────────────────────────────────────
220
+
96
221
  export const modelWithText = `
97
222
  <ModelWithText language="foo">
98
223
  This is some text.
99
224
  </ModelWithText>
100
225
  `;
101
226
 
227
+ // ────────────────────────────────────────────────────────────────────────────
228
+ // Additional scenarios (not in the guide)
229
+ // ────────────────────────────────────────────────────────────────────────────
230
+
231
+ export const modelWithOptionalField = `
232
+ <ModelWithOptionalField>
233
+ <item>widget</item>
234
+ </ModelWithOptionalField>
235
+ `;
236
+
237
+ export const modelWithEmptyArray = `
238
+ <ModelWithEmptyArray>
239
+ <items />
240
+ </ModelWithEmptyArray>
241
+ `;
242
+
102
243
  export const modelWithDictionary = `
103
244
  <ModelWithDictionary>
104
245
  <metadata>
@@ -146,6 +287,17 @@ const modelWithDatetimeNoMs = `
146
287
  </ModelWithDatetime>
147
288
  `;
148
289
 
290
+ export const xmlError = `
291
+ <XmlErrorBody>
292
+ <message>Something went wrong</message>
293
+ <code>400</code>
294
+ </XmlErrorBody>
295
+ `;
296
+
297
+ // ────────────────────────────────────────────────────────────────────────────
298
+ // Scenario registrations
299
+ // ────────────────────────────────────────────────────────────────────────────
300
+
149
301
  function createServerTests(uri: string, data?: any) {
150
302
  return {
151
303
  get: passOnSuccess({
@@ -179,10 +331,46 @@ function createServerTests(uri: string, data?: any) {
179
331
  };
180
332
  }
181
333
 
334
+ // §1 — Primitive properties
335
+
182
336
  const Payload_Xml_SimpleModel = createServerTests("/payload/xml/simpleModel", simpleModel);
183
337
  Scenarios.Payload_Xml_SimpleModelValue_get = Payload_Xml_SimpleModel.get;
184
338
  Scenarios.Payload_Xml_SimpleModelValue_put = Payload_Xml_SimpleModel.put;
185
339
 
340
+ const Payload_Xml_ModelWithRenamedProperty = createServerTests(
341
+ "/payload/xml/modelWithRenamedProperty",
342
+ modelWithRenamedProperty,
343
+ );
344
+ Scenarios.Payload_Xml_ModelWithRenamedPropertyValue_get = Payload_Xml_ModelWithRenamedProperty.get;
345
+ Scenarios.Payload_Xml_ModelWithRenamedPropertyValue_put = Payload_Xml_ModelWithRenamedProperty.put;
346
+
347
+ const Payload_Xml_ModelWithRenamedFields = createServerTests(
348
+ "/payload/xml/modelWithRenamedFields",
349
+ modelWithRenamedFields,
350
+ );
351
+ Scenarios.Payload_Xml_ModelWithRenamedFieldsValue_get = Payload_Xml_ModelWithRenamedFields.get;
352
+ Scenarios.Payload_Xml_ModelWithRenamedFieldsValue_put = Payload_Xml_ModelWithRenamedFields.put;
353
+
354
+ // §2 — Nested models
355
+
356
+ const Payload_Xml_ModelWithNestedModel = createServerTests(
357
+ "/payload/xml/modelWithNestedModel",
358
+ modelWithNestedModel,
359
+ );
360
+ Scenarios.Payload_Xml_ModelWithNestedModelValue_get = Payload_Xml_ModelWithNestedModel.get;
361
+ Scenarios.Payload_Xml_ModelWithNestedModelValue_put = Payload_Xml_ModelWithNestedModel.put;
362
+
363
+ const Payload_Xml_ModelWithRenamedNestedModel = createServerTests(
364
+ "/payload/xml/modelWithRenamedNestedModel",
365
+ modelWithRenamedNestedModel,
366
+ );
367
+ Scenarios.Payload_Xml_ModelWithRenamedNestedModelValue_get =
368
+ Payload_Xml_ModelWithRenamedNestedModel.get;
369
+ Scenarios.Payload_Xml_ModelWithRenamedNestedModelValue_put =
370
+ Payload_Xml_ModelWithRenamedNestedModel.put;
371
+
372
+ // §3 — Array of primitive types
373
+
186
374
  const Payload_Xml_ModelWithSimpleArrays = createServerTests(
187
375
  "/payload/xml/modelWithSimpleArrays",
188
376
  modelWithSimpleArrays,
@@ -190,6 +378,31 @@ const Payload_Xml_ModelWithSimpleArrays = createServerTests(
190
378
  Scenarios.Payload_Xml_ModelWithSimpleArraysValue_get = Payload_Xml_ModelWithSimpleArrays.get;
191
379
  Scenarios.Payload_Xml_ModelWithSimpleArraysValue_put = Payload_Xml_ModelWithSimpleArrays.put;
192
380
 
381
+ const Payload_Xml_ModelWithUnwrappedArray = createServerTests(
382
+ "/payload/xml/modelWithUnwrappedArray",
383
+ modelWithUnwrappedArray,
384
+ );
385
+ Scenarios.Payload_Xml_ModelWithUnwrappedArrayValue_get = Payload_Xml_ModelWithUnwrappedArray.get;
386
+ Scenarios.Payload_Xml_ModelWithUnwrappedArrayValue_put = Payload_Xml_ModelWithUnwrappedArray.put;
387
+
388
+ const Payload_Xml_ModelWithRenamedArrays = createServerTests(
389
+ "/payload/xml/modelWithRenamedArrays",
390
+ modelWithRenamedArrays,
391
+ );
392
+ Scenarios.Payload_Xml_ModelWithRenamedArraysValue_get = Payload_Xml_ModelWithRenamedArrays.get;
393
+ Scenarios.Payload_Xml_ModelWithRenamedArraysValue_put = Payload_Xml_ModelWithRenamedArrays.put;
394
+
395
+ const Payload_Xml_ModelWithWrappedPrimitiveCustomItemNames = createServerTests(
396
+ "/payload/xml/modelWithWrappedPrimitiveCustomItemNames",
397
+ modelWithWrappedPrimitiveCustomItemNames,
398
+ );
399
+ Scenarios.Payload_Xml_ModelWithWrappedPrimitiveCustomItemNamesValue_get =
400
+ Payload_Xml_ModelWithWrappedPrimitiveCustomItemNames.get;
401
+ Scenarios.Payload_Xml_ModelWithWrappedPrimitiveCustomItemNamesValue_put =
402
+ Payload_Xml_ModelWithWrappedPrimitiveCustomItemNames.put;
403
+
404
+ // §4 — Array of complex types
405
+
193
406
  const Payload_Xml_ModelWithArrayOfModel = createServerTests(
194
407
  "/payload/xml/modelWithArrayOfModel",
195
408
  modelWithArrayOfModel,
@@ -197,12 +410,43 @@ const Payload_Xml_ModelWithArrayOfModel = createServerTests(
197
410
  Scenarios.Payload_Xml_ModelWithArrayOfModelValue_get = Payload_Xml_ModelWithArrayOfModel.get;
198
411
  Scenarios.Payload_Xml_ModelWithArrayOfModelValue_put = Payload_Xml_ModelWithArrayOfModel.put;
199
412
 
200
- const Payload_Xml_ModelWithOptionalField = createServerTests(
201
- "/payload/xml/modelWithOptionalField",
202
- modelWithOptionalField,
413
+ const Payload_Xml_ModelWithUnwrappedModelArray = createServerTests(
414
+ "/payload/xml/modelWithUnwrappedModelArray",
415
+ modelWithUnwrappedModelArray,
203
416
  );
204
- Scenarios.Payload_Xml_ModelWithOptionalFieldValue_get = Payload_Xml_ModelWithOptionalField.get;
205
- Scenarios.Payload_Xml_ModelWithOptionalFieldValue_put = Payload_Xml_ModelWithOptionalField.put;
417
+ Scenarios.Payload_Xml_ModelWithUnwrappedModelArrayValue_get =
418
+ Payload_Xml_ModelWithUnwrappedModelArray.get;
419
+ Scenarios.Payload_Xml_ModelWithUnwrappedModelArrayValue_put =
420
+ Payload_Xml_ModelWithUnwrappedModelArray.put;
421
+
422
+ const Payload_Xml_ModelWithRenamedWrappedModelArray = createServerTests(
423
+ "/payload/xml/modelWithRenamedWrappedModelArray",
424
+ modelWithRenamedWrappedModelArray,
425
+ );
426
+ Scenarios.Payload_Xml_ModelWithRenamedWrappedModelArrayValue_get =
427
+ Payload_Xml_ModelWithRenamedWrappedModelArray.get;
428
+ Scenarios.Payload_Xml_ModelWithRenamedWrappedModelArrayValue_put =
429
+ Payload_Xml_ModelWithRenamedWrappedModelArray.put;
430
+
431
+ const Payload_Xml_ModelWithRenamedUnwrappedModelArray = createServerTests(
432
+ "/payload/xml/modelWithRenamedUnwrappedModelArray",
433
+ modelWithRenamedUnwrappedModelArray,
434
+ );
435
+ Scenarios.Payload_Xml_ModelWithRenamedUnwrappedModelArrayValue_get =
436
+ Payload_Xml_ModelWithRenamedUnwrappedModelArray.get;
437
+ Scenarios.Payload_Xml_ModelWithRenamedUnwrappedModelArrayValue_put =
438
+ Payload_Xml_ModelWithRenamedUnwrappedModelArray.put;
439
+
440
+ const Payload_Xml_ModelWithRenamedWrappedAndItemModelArray = createServerTests(
441
+ "/payload/xml/modelWithRenamedWrappedAndItemModelArray",
442
+ modelWithRenamedWrappedAndItemModelArray,
443
+ );
444
+ Scenarios.Payload_Xml_ModelWithRenamedWrappedAndItemModelArrayValue_get =
445
+ Payload_Xml_ModelWithRenamedWrappedAndItemModelArray.get;
446
+ Scenarios.Payload_Xml_ModelWithRenamedWrappedAndItemModelArrayValue_put =
447
+ Payload_Xml_ModelWithRenamedWrappedAndItemModelArray.put;
448
+
449
+ // §5 — Attributes
206
450
 
207
451
  const Payload_Xml_ModelWithAttributes = createServerTests(
208
452
  "/payload/xml/modelWithAttributes",
@@ -211,26 +455,47 @@ const Payload_Xml_ModelWithAttributes = createServerTests(
211
455
  Scenarios.Payload_Xml_ModelWithAttributesValue_get = Payload_Xml_ModelWithAttributes.get;
212
456
  Scenarios.Payload_Xml_ModelWithAttributesValue_put = Payload_Xml_ModelWithAttributes.put;
213
457
 
214
- const Payload_Xml_ModelWithUnwrappedArray = createServerTests(
215
- "/payload/xml/modelWithUnwrappedArray",
216
- modelWithUnwrappedArray,
458
+ const Payload_Xml_ModelWithRenamedAttribute = createServerTests(
459
+ "/payload/xml/modelWithRenamedAttribute",
460
+ modelWithRenamedAttribute,
217
461
  );
218
- Scenarios.Payload_Xml_ModelWithUnwrappedArrayValue_get = Payload_Xml_ModelWithUnwrappedArray.get;
219
- Scenarios.Payload_Xml_ModelWithUnwrappedArrayValue_put = Payload_Xml_ModelWithUnwrappedArray.put;
462
+ Scenarios.Payload_Xml_ModelWithRenamedAttributeValue_get =
463
+ Payload_Xml_ModelWithRenamedAttribute.get;
464
+ Scenarios.Payload_Xml_ModelWithRenamedAttributeValue_put =
465
+ Payload_Xml_ModelWithRenamedAttribute.put;
220
466
 
221
- const Payload_Xml_ModelWithRenamedArrays = createServerTests(
222
- "/payload/xml/modelWithRenamedArrays",
223
- modelWithRenamedArrays,
467
+ // §6/§7 Namespace and prefix
468
+
469
+ const Payload_Xml_ModelWithNamespace = createServerTests(
470
+ "/payload/xml/modelWithNamespace",
471
+ modelWithNamespace,
224
472
  );
225
- Scenarios.Payload_Xml_ModelWithRenamedArraysValue_get = Payload_Xml_ModelWithRenamedArrays.get;
226
- Scenarios.Payload_Xml_ModelWithRenamedArraysValue_put = Payload_Xml_ModelWithRenamedArrays.put;
473
+ Scenarios.Payload_Xml_ModelWithNamespaceValue_get = Payload_Xml_ModelWithNamespace.get;
474
+ Scenarios.Payload_Xml_ModelWithNamespaceValue_put = Payload_Xml_ModelWithNamespace.put;
227
475
 
228
- const Payload_Xml_ModelWithRenamedFields = createServerTests(
229
- "/payload/xml/modelWithRenamedFields",
230
- modelWithRenamedFields,
476
+ const Payload_Xml_ModelWithNamespaceOnProperties = createServerTests(
477
+ "/payload/xml/modelWithNamespaceOnProperties",
478
+ modelWithNamespaceOnProperties,
231
479
  );
232
- Scenarios.Payload_Xml_ModelWithRenamedFieldsValue_get = Payload_Xml_ModelWithRenamedFields.get;
233
- Scenarios.Payload_Xml_ModelWithRenamedFieldsValue_put = Payload_Xml_ModelWithRenamedFields.put;
480
+ Scenarios.Payload_Xml_ModelWithNamespaceOnPropertiesValue_get =
481
+ Payload_Xml_ModelWithNamespaceOnProperties.get;
482
+ Scenarios.Payload_Xml_ModelWithNamespaceOnPropertiesValue_put =
483
+ Payload_Xml_ModelWithNamespaceOnProperties.put;
484
+
485
+ // §8 — Text content
486
+
487
+ const Payload_Xml_ModelWithText = createServerTests("/payload/xml/modelWithText", modelWithText);
488
+ Scenarios.Payload_Xml_ModelWithTextValue_get = Payload_Xml_ModelWithText.get;
489
+ Scenarios.Payload_Xml_ModelWithTextValue_put = Payload_Xml_ModelWithText.put;
490
+
491
+ // Additional scenarios
492
+
493
+ const Payload_Xml_ModelWithOptionalField = createServerTests(
494
+ "/payload/xml/modelWithOptionalField",
495
+ modelWithOptionalField,
496
+ );
497
+ Scenarios.Payload_Xml_ModelWithOptionalFieldValue_get = Payload_Xml_ModelWithOptionalField.get;
498
+ Scenarios.Payload_Xml_ModelWithOptionalFieldValue_put = Payload_Xml_ModelWithOptionalField.put;
234
499
 
235
500
  const Payload_Xml_ModelWithEmptyArray = createServerTests(
236
501
  "/payload/xml/modelWithEmptyArray",
@@ -239,10 +504,6 @@ const Payload_Xml_ModelWithEmptyArray = createServerTests(
239
504
  Scenarios.Payload_Xml_ModelWithEmptyArrayValue_get = Payload_Xml_ModelWithEmptyArray.get;
240
505
  Scenarios.Payload_Xml_ModelWithEmptyArrayValue_put = Payload_Xml_ModelWithEmptyArray.put;
241
506
 
242
- const Payload_Xml_ModelWithText = createServerTests("/payload/xml/modelWithText", modelWithText);
243
- Scenarios.Payload_Xml_ModelWithTextValue_get = Payload_Xml_ModelWithText.get;
244
- Scenarios.Payload_Xml_ModelWithTextValue_put = Payload_Xml_ModelWithText.put;
245
-
246
507
  const Payload_Xml_ModelWithDictionary = createServerTests(
247
508
  "/payload/xml/modelWithDictionary",
248
509
  modelWithDictionary,
@@ -300,13 +561,6 @@ Scenarios.Payload_Xml_ModelWithDatetimeValue_put = passOnSuccess({
300
561
  kind: "MockApiDefinition",
301
562
  });
302
563
 
303
- export const xmlError = `
304
- <XmlErrorBody>
305
- <message>Something went wrong</message>
306
- <code>400</code>
307
- </XmlErrorBody>
308
- `;
309
-
310
564
  Scenarios.Payload_Xml_XmlErrorValue_get = passOnCode(400, {
311
565
  uri: "/payload/xml/error",
312
566
  method: "get",