@typespec/http-specs 0.1.0-dev.0 → 0.1.0-dev.2
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.
- package/CHANGELOG.md +19 -0
- package/dist/specs/encode/duration/mockapi.js +5 -0
- package/dist/specs/encode/duration/mockapi.js.map +1 -1
- package/dist/specs/payload/multipart/mockapi.js +16 -9
- package/dist/specs/payload/multipart/mockapi.js.map +1 -1
- package/dist/specs/payload/pageable/mockapi.d.ts.map +1 -1
- package/dist/specs/payload/pageable/mockapi.js +37 -5
- package/dist/specs/payload/pageable/mockapi.js.map +1 -1
- package/dist/specs/payload/xml/mockapi.d.ts +16 -5
- package/dist/specs/payload/xml/mockapi.d.ts.map +1 -1
- package/dist/specs/payload/xml/mockapi.js +285 -59
- package/dist/specs/payload/xml/mockapi.js.map +1 -1
- package/manifest.json +427 -82
- package/package.json +17 -17
- package/spec-summary.md +392 -0
- package/specs/encode/duration/mockapi.ts +5 -0
- package/specs/payload/multipart/mockapi.ts +16 -9
- package/specs/payload/pageable/main.tsp +47 -0
- package/specs/payload/pageable/mockapi.ts +40 -5
- package/specs/payload/xml/main.tsp +490 -179
- package/specs/payload/xml/mockapi.ts +370 -74
- package/specs/special-words/main.tsp +48 -42
- package/temp/.tsbuildinfo +1 -1
|
@@ -1,11 +1,53 @@
|
|
|
1
1
|
import { passOnCode, passOnSuccess, xml } from "@typespec/spec-api";
|
|
2
2
|
export const Scenarios = {};
|
|
3
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
4
|
+
// §1 — Primitive properties
|
|
5
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
3
6
|
export const simpleModel = `
|
|
4
7
|
<SimpleModel>
|
|
5
8
|
<name>foo</name>
|
|
6
9
|
<age>123</age>
|
|
7
10
|
</SimpleModel>
|
|
8
11
|
`;
|
|
12
|
+
export const modelWithRenamedProperty = `
|
|
13
|
+
<ModelWithRenamedProperty>
|
|
14
|
+
<renamedTitle>foo</renamedTitle>
|
|
15
|
+
<author>bar</author>
|
|
16
|
+
</ModelWithRenamedProperty>
|
|
17
|
+
`;
|
|
18
|
+
export const modelWithRenamedFields = `
|
|
19
|
+
<ModelWithRenamedFieldsSrc>
|
|
20
|
+
<InputData>
|
|
21
|
+
<name>foo</name>
|
|
22
|
+
<age>123</age>
|
|
23
|
+
</InputData>
|
|
24
|
+
<OutputData>
|
|
25
|
+
<name>bar</name>
|
|
26
|
+
<age>456</age>
|
|
27
|
+
</OutputData>
|
|
28
|
+
</ModelWithRenamedFieldsSrc>
|
|
29
|
+
`;
|
|
30
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
31
|
+
// §2 — Nested models
|
|
32
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
33
|
+
export const modelWithNestedModel = `
|
|
34
|
+
<ModelWithNestedModel>
|
|
35
|
+
<nested>
|
|
36
|
+
<name>foo</name>
|
|
37
|
+
<age>123</age>
|
|
38
|
+
</nested>
|
|
39
|
+
</ModelWithNestedModel>
|
|
40
|
+
`;
|
|
41
|
+
export const modelWithRenamedNestedModel = `
|
|
42
|
+
<ModelWithRenamedNestedModel>
|
|
43
|
+
<author>
|
|
44
|
+
<name>foo</name>
|
|
45
|
+
</author>
|
|
46
|
+
</ModelWithRenamedNestedModel>
|
|
47
|
+
`;
|
|
48
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
49
|
+
// §3 — Array of primitive types
|
|
50
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
9
51
|
export const modelWithSimpleArrays = `
|
|
10
52
|
<ModelWithSimpleArrays>
|
|
11
53
|
<colors>
|
|
@@ -19,30 +61,6 @@ export const modelWithSimpleArrays = `
|
|
|
19
61
|
</counts>
|
|
20
62
|
</ModelWithSimpleArrays>
|
|
21
63
|
`;
|
|
22
|
-
export const modelWithArrayOfModel = `
|
|
23
|
-
<ModelWithArrayOfModel>
|
|
24
|
-
<items>
|
|
25
|
-
<SimpleModel>
|
|
26
|
-
<name>foo</name>
|
|
27
|
-
<age>123</age>
|
|
28
|
-
</SimpleModel>
|
|
29
|
-
<SimpleModel>
|
|
30
|
-
<name>bar</name>
|
|
31
|
-
<age>456</age>
|
|
32
|
-
</SimpleModel>
|
|
33
|
-
</items>
|
|
34
|
-
</ModelWithArrayOfModel>
|
|
35
|
-
`;
|
|
36
|
-
export const modelWithOptionalField = `
|
|
37
|
-
<ModelWithOptionalField>
|
|
38
|
-
<item>widget</item>
|
|
39
|
-
</ModelWithOptionalField>
|
|
40
|
-
`;
|
|
41
|
-
export const modelWithAttributes = `
|
|
42
|
-
<ModelWithAttributes id1="123" id2="foo">
|
|
43
|
-
<enabled>true</enabled>
|
|
44
|
-
</ModelWithAttributes>
|
|
45
|
-
`;
|
|
46
64
|
export const modelWithUnwrappedArray = `
|
|
47
65
|
<ModelWithUnwrappedArray>
|
|
48
66
|
<colors>red</colors>
|
|
@@ -65,28 +83,132 @@ export const modelWithRenamedArrays = `
|
|
|
65
83
|
</Counts>
|
|
66
84
|
</ModelWithRenamedArrays>
|
|
67
85
|
`;
|
|
68
|
-
export const
|
|
69
|
-
<
|
|
70
|
-
<
|
|
86
|
+
export const modelWithWrappedPrimitiveCustomItemNames = `
|
|
87
|
+
<ModelWithWrappedPrimitiveCustomItemNames>
|
|
88
|
+
<ItemsTags>
|
|
89
|
+
<ItemName>fiction</ItemName>
|
|
90
|
+
<ItemName>classic</ItemName>
|
|
91
|
+
</ItemsTags>
|
|
92
|
+
</ModelWithWrappedPrimitiveCustomItemNames>
|
|
93
|
+
`;
|
|
94
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
95
|
+
// §4 — Array of complex types
|
|
96
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
97
|
+
export const modelWithArrayOfModel = `
|
|
98
|
+
<ModelWithArrayOfModel>
|
|
99
|
+
<items>
|
|
100
|
+
<SimpleModel>
|
|
101
|
+
<name>foo</name>
|
|
102
|
+
<age>123</age>
|
|
103
|
+
</SimpleModel>
|
|
104
|
+
<SimpleModel>
|
|
105
|
+
<name>bar</name>
|
|
106
|
+
<age>456</age>
|
|
107
|
+
</SimpleModel>
|
|
108
|
+
</items>
|
|
109
|
+
</ModelWithArrayOfModel>
|
|
110
|
+
`;
|
|
111
|
+
export const modelWithUnwrappedModelArray = `
|
|
112
|
+
<ModelWithUnwrappedModelArray>
|
|
113
|
+
<items>
|
|
71
114
|
<name>foo</name>
|
|
72
115
|
<age>123</age>
|
|
73
|
-
</
|
|
74
|
-
<
|
|
116
|
+
</items>
|
|
117
|
+
<items>
|
|
75
118
|
<name>bar</name>
|
|
76
119
|
<age>456</age>
|
|
77
|
-
</
|
|
78
|
-
</
|
|
120
|
+
</items>
|
|
121
|
+
</ModelWithUnwrappedModelArray>
|
|
79
122
|
`;
|
|
80
|
-
export const
|
|
81
|
-
<
|
|
82
|
-
<
|
|
83
|
-
|
|
123
|
+
export const modelWithRenamedWrappedModelArray = `
|
|
124
|
+
<ModelWithRenamedWrappedModelArray>
|
|
125
|
+
<AllItems>
|
|
126
|
+
<SimpleModel>
|
|
127
|
+
<name>foo</name>
|
|
128
|
+
<age>123</age>
|
|
129
|
+
</SimpleModel>
|
|
130
|
+
<SimpleModel>
|
|
131
|
+
<name>bar</name>
|
|
132
|
+
<age>456</age>
|
|
133
|
+
</SimpleModel>
|
|
134
|
+
</AllItems>
|
|
135
|
+
</ModelWithRenamedWrappedModelArray>
|
|
136
|
+
`;
|
|
137
|
+
export const modelWithRenamedUnwrappedModelArray = `
|
|
138
|
+
<ModelWithRenamedUnwrappedModelArray>
|
|
139
|
+
<ModelItem>
|
|
140
|
+
<name>foo</name>
|
|
141
|
+
<age>123</age>
|
|
142
|
+
</ModelItem>
|
|
143
|
+
<ModelItem>
|
|
144
|
+
<name>bar</name>
|
|
145
|
+
<age>456</age>
|
|
146
|
+
</ModelItem>
|
|
147
|
+
</ModelWithRenamedUnwrappedModelArray>
|
|
148
|
+
`;
|
|
149
|
+
export const modelWithRenamedWrappedAndItemModelArray = `
|
|
150
|
+
<ModelWithRenamedWrappedAndItemModelArray>
|
|
151
|
+
<AllBooks>
|
|
152
|
+
<XmlBook>
|
|
153
|
+
<title>The Great Gatsby</title>
|
|
154
|
+
</XmlBook>
|
|
155
|
+
<XmlBook>
|
|
156
|
+
<title>Les Miserables</title>
|
|
157
|
+
</XmlBook>
|
|
158
|
+
</AllBooks>
|
|
159
|
+
</ModelWithRenamedWrappedAndItemModelArray>
|
|
160
|
+
`;
|
|
161
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
162
|
+
// §5 — Attributes
|
|
163
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
164
|
+
export const modelWithAttributes = `
|
|
165
|
+
<ModelWithAttributes id1="123" id2="foo">
|
|
166
|
+
<enabled>true</enabled>
|
|
167
|
+
</ModelWithAttributes>
|
|
168
|
+
`;
|
|
169
|
+
export const modelWithRenamedAttribute = `
|
|
170
|
+
<ModelWithRenamedAttribute xml-id="123">
|
|
171
|
+
<title>The Great Gatsby</title>
|
|
172
|
+
<author>F. Scott Fitzgerald</author>
|
|
173
|
+
</ModelWithRenamedAttribute>
|
|
84
174
|
`;
|
|
175
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
176
|
+
// §6/§7 — Namespace and prefix
|
|
177
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
178
|
+
export const modelWithNamespace = `
|
|
179
|
+
<smp:ModelWithNamespace xmlns:smp="http://example.com/schema">
|
|
180
|
+
<id>123</id>
|
|
181
|
+
<title>The Great Gatsby</title>
|
|
182
|
+
</smp:ModelWithNamespace>
|
|
183
|
+
`;
|
|
184
|
+
export const modelWithNamespaceOnProperties = `
|
|
185
|
+
<smp:ModelWithNamespaceOnProperties xmlns:smp="http://example.com/schema" xmlns:ns2="http://example.com/ns2">
|
|
186
|
+
<id>123</id>
|
|
187
|
+
<smp:title>The Great Gatsby</smp:title>
|
|
188
|
+
<ns2:author>F. Scott Fitzgerald</ns2:author>
|
|
189
|
+
</smp:ModelWithNamespaceOnProperties>
|
|
190
|
+
`;
|
|
191
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
192
|
+
// §8 — Text content
|
|
193
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
85
194
|
export const modelWithText = `
|
|
86
195
|
<ModelWithText language="foo">
|
|
87
196
|
This is some text.
|
|
88
197
|
</ModelWithText>
|
|
89
198
|
`;
|
|
199
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
200
|
+
// Additional scenarios (not in the guide)
|
|
201
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
202
|
+
export const modelWithOptionalField = `
|
|
203
|
+
<ModelWithOptionalField>
|
|
204
|
+
<item>widget</item>
|
|
205
|
+
</ModelWithOptionalField>
|
|
206
|
+
`;
|
|
207
|
+
export const modelWithEmptyArray = `
|
|
208
|
+
<ModelWithEmptyArray>
|
|
209
|
+
<items />
|
|
210
|
+
</ModelWithEmptyArray>
|
|
211
|
+
`;
|
|
90
212
|
export const modelWithDictionary = `
|
|
91
213
|
<ModelWithDictionary>
|
|
92
214
|
<metadata>
|
|
@@ -120,6 +242,24 @@ export const modelWithDatetime = `
|
|
|
120
242
|
<rfc7231>Fri, 26 Aug 2022 14:38:00 GMT</rfc7231>
|
|
121
243
|
</ModelWithDatetime>
|
|
122
244
|
`;
|
|
245
|
+
// Some clients serialize UTC datetimes without trailing zero milliseconds. Both
|
|
246
|
+
// "2022-08-26T18:38:00.000Z" and "2022-08-26T18:38:00Z" are valid RFC3339 representations
|
|
247
|
+
// of the same instant; accept either form.
|
|
248
|
+
const modelWithDatetimeNoMs = `
|
|
249
|
+
<ModelWithDatetime>
|
|
250
|
+
<rfc3339>2022-08-26T18:38:00Z</rfc3339>
|
|
251
|
+
<rfc7231>Fri, 26 Aug 2022 14:38:00 GMT</rfc7231>
|
|
252
|
+
</ModelWithDatetime>
|
|
253
|
+
`;
|
|
254
|
+
export const xmlError = `
|
|
255
|
+
<XmlErrorBody>
|
|
256
|
+
<message>Something went wrong</message>
|
|
257
|
+
<code>400</code>
|
|
258
|
+
</XmlErrorBody>
|
|
259
|
+
`;
|
|
260
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
261
|
+
// Scenario registrations
|
|
262
|
+
// ────────────────────────────────────────────────────────────────────────────
|
|
123
263
|
function createServerTests(uri, data) {
|
|
124
264
|
return {
|
|
125
265
|
get: passOnSuccess({
|
|
@@ -152,36 +292,93 @@ function createServerTests(uri, data) {
|
|
|
152
292
|
}),
|
|
153
293
|
};
|
|
154
294
|
}
|
|
295
|
+
// §1 — Primitive properties
|
|
155
296
|
const Payload_Xml_SimpleModel = createServerTests("/payload/xml/simpleModel", simpleModel);
|
|
156
297
|
Scenarios.Payload_Xml_SimpleModelValue_get = Payload_Xml_SimpleModel.get;
|
|
157
298
|
Scenarios.Payload_Xml_SimpleModelValue_put = Payload_Xml_SimpleModel.put;
|
|
299
|
+
const Payload_Xml_ModelWithRenamedProperty = createServerTests("/payload/xml/modelWithRenamedProperty", modelWithRenamedProperty);
|
|
300
|
+
Scenarios.Payload_Xml_ModelWithRenamedPropertyValue_get = Payload_Xml_ModelWithRenamedProperty.get;
|
|
301
|
+
Scenarios.Payload_Xml_ModelWithRenamedPropertyValue_put = Payload_Xml_ModelWithRenamedProperty.put;
|
|
302
|
+
const Payload_Xml_ModelWithRenamedFields = createServerTests("/payload/xml/modelWithRenamedFields", modelWithRenamedFields);
|
|
303
|
+
Scenarios.Payload_Xml_ModelWithRenamedFieldsValue_get = Payload_Xml_ModelWithRenamedFields.get;
|
|
304
|
+
Scenarios.Payload_Xml_ModelWithRenamedFieldsValue_put = Payload_Xml_ModelWithRenamedFields.put;
|
|
305
|
+
// §2 — Nested models
|
|
306
|
+
const Payload_Xml_ModelWithNestedModel = createServerTests("/payload/xml/modelWithNestedModel", modelWithNestedModel);
|
|
307
|
+
Scenarios.Payload_Xml_ModelWithNestedModelValue_get = Payload_Xml_ModelWithNestedModel.get;
|
|
308
|
+
Scenarios.Payload_Xml_ModelWithNestedModelValue_put = Payload_Xml_ModelWithNestedModel.put;
|
|
309
|
+
const Payload_Xml_ModelWithRenamedNestedModel = createServerTests("/payload/xml/modelWithRenamedNestedModel", modelWithRenamedNestedModel);
|
|
310
|
+
Scenarios.Payload_Xml_ModelWithRenamedNestedModelValue_get =
|
|
311
|
+
Payload_Xml_ModelWithRenamedNestedModel.get;
|
|
312
|
+
Scenarios.Payload_Xml_ModelWithRenamedNestedModelValue_put =
|
|
313
|
+
Payload_Xml_ModelWithRenamedNestedModel.put;
|
|
314
|
+
// §3 — Array of primitive types
|
|
158
315
|
const Payload_Xml_ModelWithSimpleArrays = createServerTests("/payload/xml/modelWithSimpleArrays", modelWithSimpleArrays);
|
|
159
316
|
Scenarios.Payload_Xml_ModelWithSimpleArraysValue_get = Payload_Xml_ModelWithSimpleArrays.get;
|
|
160
317
|
Scenarios.Payload_Xml_ModelWithSimpleArraysValue_put = Payload_Xml_ModelWithSimpleArrays.put;
|
|
161
|
-
const Payload_Xml_ModelWithArrayOfModel = createServerTests("/payload/xml/modelWithArrayOfModel", modelWithArrayOfModel);
|
|
162
|
-
Scenarios.Payload_Xml_ModelWithArrayOfModelValue_get = Payload_Xml_ModelWithArrayOfModel.get;
|
|
163
|
-
Scenarios.Payload_Xml_ModelWithArrayOfModelValue_put = Payload_Xml_ModelWithArrayOfModel.put;
|
|
164
|
-
const Payload_Xml_ModelWithOptionalField = createServerTests("/payload/xml/modelWithOptionalField", modelWithOptionalField);
|
|
165
|
-
Scenarios.Payload_Xml_ModelWithOptionalFieldValue_get = Payload_Xml_ModelWithOptionalField.get;
|
|
166
|
-
Scenarios.Payload_Xml_ModelWithOptionalFieldValue_put = Payload_Xml_ModelWithOptionalField.put;
|
|
167
|
-
const Payload_Xml_ModelWithAttributes = createServerTests("/payload/xml/modelWithAttributes", modelWithAttributes);
|
|
168
|
-
Scenarios.Payload_Xml_ModelWithAttributesValue_get = Payload_Xml_ModelWithAttributes.get;
|
|
169
|
-
Scenarios.Payload_Xml_ModelWithAttributesValue_put = Payload_Xml_ModelWithAttributes.put;
|
|
170
318
|
const Payload_Xml_ModelWithUnwrappedArray = createServerTests("/payload/xml/modelWithUnwrappedArray", modelWithUnwrappedArray);
|
|
171
319
|
Scenarios.Payload_Xml_ModelWithUnwrappedArrayValue_get = Payload_Xml_ModelWithUnwrappedArray.get;
|
|
172
320
|
Scenarios.Payload_Xml_ModelWithUnwrappedArrayValue_put = Payload_Xml_ModelWithUnwrappedArray.put;
|
|
173
321
|
const Payload_Xml_ModelWithRenamedArrays = createServerTests("/payload/xml/modelWithRenamedArrays", modelWithRenamedArrays);
|
|
174
322
|
Scenarios.Payload_Xml_ModelWithRenamedArraysValue_get = Payload_Xml_ModelWithRenamedArrays.get;
|
|
175
323
|
Scenarios.Payload_Xml_ModelWithRenamedArraysValue_put = Payload_Xml_ModelWithRenamedArrays.put;
|
|
176
|
-
const
|
|
177
|
-
Scenarios.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
324
|
+
const Payload_Xml_ModelWithWrappedPrimitiveCustomItemNames = createServerTests("/payload/xml/modelWithWrappedPrimitiveCustomItemNames", modelWithWrappedPrimitiveCustomItemNames);
|
|
325
|
+
Scenarios.Payload_Xml_ModelWithWrappedPrimitiveCustomItemNamesValue_get =
|
|
326
|
+
Payload_Xml_ModelWithWrappedPrimitiveCustomItemNames.get;
|
|
327
|
+
Scenarios.Payload_Xml_ModelWithWrappedPrimitiveCustomItemNamesValue_put =
|
|
328
|
+
Payload_Xml_ModelWithWrappedPrimitiveCustomItemNames.put;
|
|
329
|
+
// §4 — Array of complex types
|
|
330
|
+
const Payload_Xml_ModelWithArrayOfModel = createServerTests("/payload/xml/modelWithArrayOfModel", modelWithArrayOfModel);
|
|
331
|
+
Scenarios.Payload_Xml_ModelWithArrayOfModelValue_get = Payload_Xml_ModelWithArrayOfModel.get;
|
|
332
|
+
Scenarios.Payload_Xml_ModelWithArrayOfModelValue_put = Payload_Xml_ModelWithArrayOfModel.put;
|
|
333
|
+
const Payload_Xml_ModelWithUnwrappedModelArray = createServerTests("/payload/xml/modelWithUnwrappedModelArray", modelWithUnwrappedModelArray);
|
|
334
|
+
Scenarios.Payload_Xml_ModelWithUnwrappedModelArrayValue_get =
|
|
335
|
+
Payload_Xml_ModelWithUnwrappedModelArray.get;
|
|
336
|
+
Scenarios.Payload_Xml_ModelWithUnwrappedModelArrayValue_put =
|
|
337
|
+
Payload_Xml_ModelWithUnwrappedModelArray.put;
|
|
338
|
+
const Payload_Xml_ModelWithRenamedWrappedModelArray = createServerTests("/payload/xml/modelWithRenamedWrappedModelArray", modelWithRenamedWrappedModelArray);
|
|
339
|
+
Scenarios.Payload_Xml_ModelWithRenamedWrappedModelArrayValue_get =
|
|
340
|
+
Payload_Xml_ModelWithRenamedWrappedModelArray.get;
|
|
341
|
+
Scenarios.Payload_Xml_ModelWithRenamedWrappedModelArrayValue_put =
|
|
342
|
+
Payload_Xml_ModelWithRenamedWrappedModelArray.put;
|
|
343
|
+
const Payload_Xml_ModelWithRenamedUnwrappedModelArray = createServerTests("/payload/xml/modelWithRenamedUnwrappedModelArray", modelWithRenamedUnwrappedModelArray);
|
|
344
|
+
Scenarios.Payload_Xml_ModelWithRenamedUnwrappedModelArrayValue_get =
|
|
345
|
+
Payload_Xml_ModelWithRenamedUnwrappedModelArray.get;
|
|
346
|
+
Scenarios.Payload_Xml_ModelWithRenamedUnwrappedModelArrayValue_put =
|
|
347
|
+
Payload_Xml_ModelWithRenamedUnwrappedModelArray.put;
|
|
348
|
+
const Payload_Xml_ModelWithRenamedWrappedAndItemModelArray = createServerTests("/payload/xml/modelWithRenamedWrappedAndItemModelArray", modelWithRenamedWrappedAndItemModelArray);
|
|
349
|
+
Scenarios.Payload_Xml_ModelWithRenamedWrappedAndItemModelArrayValue_get =
|
|
350
|
+
Payload_Xml_ModelWithRenamedWrappedAndItemModelArray.get;
|
|
351
|
+
Scenarios.Payload_Xml_ModelWithRenamedWrappedAndItemModelArrayValue_put =
|
|
352
|
+
Payload_Xml_ModelWithRenamedWrappedAndItemModelArray.put;
|
|
353
|
+
// §5 — Attributes
|
|
354
|
+
const Payload_Xml_ModelWithAttributes = createServerTests("/payload/xml/modelWithAttributes", modelWithAttributes);
|
|
355
|
+
Scenarios.Payload_Xml_ModelWithAttributesValue_get = Payload_Xml_ModelWithAttributes.get;
|
|
356
|
+
Scenarios.Payload_Xml_ModelWithAttributesValue_put = Payload_Xml_ModelWithAttributes.put;
|
|
357
|
+
const Payload_Xml_ModelWithRenamedAttribute = createServerTests("/payload/xml/modelWithRenamedAttribute", modelWithRenamedAttribute);
|
|
358
|
+
Scenarios.Payload_Xml_ModelWithRenamedAttributeValue_get =
|
|
359
|
+
Payload_Xml_ModelWithRenamedAttribute.get;
|
|
360
|
+
Scenarios.Payload_Xml_ModelWithRenamedAttributeValue_put =
|
|
361
|
+
Payload_Xml_ModelWithRenamedAttribute.put;
|
|
362
|
+
// §6/§7 — Namespace and prefix
|
|
363
|
+
const Payload_Xml_ModelWithNamespace = createServerTests("/payload/xml/modelWithNamespace", modelWithNamespace);
|
|
364
|
+
Scenarios.Payload_Xml_ModelWithNamespaceValue_get = Payload_Xml_ModelWithNamespace.get;
|
|
365
|
+
Scenarios.Payload_Xml_ModelWithNamespaceValue_put = Payload_Xml_ModelWithNamespace.put;
|
|
366
|
+
const Payload_Xml_ModelWithNamespaceOnProperties = createServerTests("/payload/xml/modelWithNamespaceOnProperties", modelWithNamespaceOnProperties);
|
|
367
|
+
Scenarios.Payload_Xml_ModelWithNamespaceOnPropertiesValue_get =
|
|
368
|
+
Payload_Xml_ModelWithNamespaceOnProperties.get;
|
|
369
|
+
Scenarios.Payload_Xml_ModelWithNamespaceOnPropertiesValue_put =
|
|
370
|
+
Payload_Xml_ModelWithNamespaceOnProperties.put;
|
|
371
|
+
// §8 — Text content
|
|
182
372
|
const Payload_Xml_ModelWithText = createServerTests("/payload/xml/modelWithText", modelWithText);
|
|
183
373
|
Scenarios.Payload_Xml_ModelWithTextValue_get = Payload_Xml_ModelWithText.get;
|
|
184
374
|
Scenarios.Payload_Xml_ModelWithTextValue_put = Payload_Xml_ModelWithText.put;
|
|
375
|
+
// Additional scenarios
|
|
376
|
+
const Payload_Xml_ModelWithOptionalField = createServerTests("/payload/xml/modelWithOptionalField", modelWithOptionalField);
|
|
377
|
+
Scenarios.Payload_Xml_ModelWithOptionalFieldValue_get = Payload_Xml_ModelWithOptionalField.get;
|
|
378
|
+
Scenarios.Payload_Xml_ModelWithOptionalFieldValue_put = Payload_Xml_ModelWithOptionalField.put;
|
|
379
|
+
const Payload_Xml_ModelWithEmptyArray = createServerTests("/payload/xml/modelWithEmptyArray", modelWithEmptyArray);
|
|
380
|
+
Scenarios.Payload_Xml_ModelWithEmptyArrayValue_get = Payload_Xml_ModelWithEmptyArray.get;
|
|
381
|
+
Scenarios.Payload_Xml_ModelWithEmptyArrayValue_put = Payload_Xml_ModelWithEmptyArray.put;
|
|
185
382
|
const Payload_Xml_ModelWithDictionary = createServerTests("/payload/xml/modelWithDictionary", modelWithDictionary);
|
|
186
383
|
Scenarios.Payload_Xml_ModelWithDictionaryValue_get = Payload_Xml_ModelWithDictionary.get;
|
|
187
384
|
Scenarios.Payload_Xml_ModelWithDictionaryValue_put = Payload_Xml_ModelWithDictionary.put;
|
|
@@ -191,15 +388,44 @@ Scenarios.Payload_Xml_ModelWithEncodedNamesValue_put = Payload_Xml_ModelWithEnco
|
|
|
191
388
|
const Payload_Xml_ModelWithEnum = createServerTests("/payload/xml/modelWithEnum", modelWithEnum);
|
|
192
389
|
Scenarios.Payload_Xml_ModelWithEnumValue_get = Payload_Xml_ModelWithEnum.get;
|
|
193
390
|
Scenarios.Payload_Xml_ModelWithEnumValue_put = Payload_Xml_ModelWithEnum.put;
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
391
|
+
Scenarios.Payload_Xml_ModelWithDatetimeValue_get = passOnSuccess({
|
|
392
|
+
uri: "/payload/xml/modelWithDatetime",
|
|
393
|
+
method: "get",
|
|
394
|
+
request: {},
|
|
395
|
+
response: {
|
|
396
|
+
status: 200,
|
|
397
|
+
body: xml(modelWithDatetime),
|
|
398
|
+
},
|
|
399
|
+
kind: "MockApiDefinition",
|
|
400
|
+
});
|
|
401
|
+
Scenarios.Payload_Xml_ModelWithDatetimeValue_put = passOnSuccess({
|
|
402
|
+
uri: "/payload/xml/modelWithDatetime",
|
|
403
|
+
method: "put",
|
|
404
|
+
request: {
|
|
405
|
+
body: xml(modelWithDatetime),
|
|
406
|
+
},
|
|
407
|
+
handler: (req) => {
|
|
408
|
+
req.expect.containsHeader("content-type", "application/xml");
|
|
409
|
+
// Accept both "2022-08-26T18:38:00.000Z" and "2022-08-26T18:38:00Z" as equivalent UTC datetimes.
|
|
410
|
+
let firstError;
|
|
411
|
+
try {
|
|
412
|
+
req.expect.xmlBodyEquals(modelWithDatetime);
|
|
413
|
+
}
|
|
414
|
+
catch (e) {
|
|
415
|
+
firstError = e;
|
|
416
|
+
}
|
|
417
|
+
if (firstError !== undefined) {
|
|
418
|
+
req.expect.xmlBodyEquals(modelWithDatetimeNoMs);
|
|
419
|
+
}
|
|
420
|
+
return {
|
|
421
|
+
status: 204,
|
|
422
|
+
};
|
|
423
|
+
},
|
|
424
|
+
response: {
|
|
425
|
+
status: 204,
|
|
426
|
+
},
|
|
427
|
+
kind: "MockApiDefinition",
|
|
428
|
+
});
|
|
203
429
|
Scenarios.Payload_Xml_XmlErrorValue_get = passOnCode(400, {
|
|
204
430
|
uri: "/payload/xml/error",
|
|
205
431
|
method: "get",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mockapi.js","sourceRoot":"","sources":["../../../../specs/payload/xml/mockapi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,UAAU,EAAE,aAAa,EAAmB,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAElG,MAAM,CAAC,M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