@typespec/http-specs 0.38.0-dev.3 → 0.38.0-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.
- package/dist/specs/encode/duration/mockapi.js +6 -0
- package/dist/specs/encode/duration/mockapi.js.map +1 -1
- package/dist/specs/payload/content-negotiation/mockapi.d.ts +3 -0
- package/dist/specs/payload/content-negotiation/mockapi.d.ts.map +1 -0
- package/dist/specs/payload/content-negotiation/mockapi.js +169 -0
- package/dist/specs/payload/content-negotiation/mockapi.js.map +1 -0
- package/dist/specs/special-words/mockapi.js +1 -1
- package/dist/specs/special-words/mockapi.js.map +1 -1
- package/package.json +8 -7
- package/specs/authentication/api-key/main.tsp +2 -1
- package/specs/authentication/http/custom/main.tsp +1 -0
- package/specs/authentication/oauth2/main.tsp +2 -1
- package/specs/authentication/union/main.tsp +2 -1
- package/specs/encode/bytes/main.tsp +2 -8
- package/specs/encode/datetime/main.tsp +2 -7
- package/specs/encode/duration/main.tsp +2 -6
- package/specs/encode/duration/mockapi.ts +14 -0
- package/specs/encode/numeric/main.tsp +2 -4
- package/specs/parameters/basic/main.tsp +2 -5
- package/specs/parameters/body-optionality/main.tsp +2 -4
- package/specs/parameters/collection-format/main.tsp +2 -5
- package/specs/parameters/spread/main.tsp +2 -5
- package/specs/payload/content-negotiation/main.tsp +61 -0
- package/specs/payload/content-negotiation/mockapi.ts +188 -0
- package/specs/payload/json-merge-patch/main.tsp +2 -1
- package/specs/payload/media-type/main.tsp +2 -4
- package/specs/payload/multipart/main.tsp +2 -1
- package/specs/payload/xml/main.tsp +15 -25
- package/specs/routes/main.tsp +2 -1
- package/specs/serialization/encoded-name/json/main.tsp +2 -2
- package/specs/server/endpoint/not-defined/main.tsp +2 -1
- package/specs/server/path/multiple/main.tsp +2 -1
- package/specs/server/path/single/main.tsp +2 -1
- package/specs/server/versions/not-versioned/main.tsp +2 -1
- package/specs/server/versions/versioned/main.tsp +2 -3
- package/specs/special-headers/conditional-request/main.tsp +2 -2
- package/specs/special-headers/repeatability/main.tsp +2 -2
- package/specs/special-words/main.tsp +2 -6
- package/specs/special-words/mockapi.ts +1 -1
- package/specs/type/array/main.tsp +15 -39
- package/specs/type/dictionary/main.tsp +15 -36
- package/specs/type/enum/extensible/main.tsp +2 -1
- package/specs/type/enum/fixed/main.tsp +2 -2
- package/specs/type/model/empty/main.tsp +2 -1
- package/specs/type/model/inheritance/enum-discriminator/main.tsp +2 -2
- package/specs/type/model/inheritance/nested-discriminator/main.tsp +2 -1
- package/specs/type/model/inheritance/not-discriminated/main.tsp +2 -1
- package/specs/type/model/inheritance/recursive/main.tsp +2 -1
- package/specs/type/model/inheritance/single-discriminator/main.tsp +2 -1
- package/specs/type/model/templated/main.tsp +2 -2
- package/specs/type/model/usage/main.tsp +2 -1
- package/specs/type/model/visibility/main.tsp +2 -1
- package/specs/type/property/additional-properties/main.tsp +15 -57
- package/specs/type/property/nullable/main.tsp +31 -54
- package/specs/type/property/optionality/main.tsp +31 -63
- package/specs/type/property/value-types/main.tsp +15 -56
- package/specs/type/scalar/main.tsp +34 -62
- package/specs/type/union/main.tsp +5 -18
- package/specs/versioning/added/main.tsp +2 -1
- package/specs/versioning/madeOptional/main.tsp +2 -1
- package/specs/versioning/removed/main.tsp +2 -1
- package/specs/versioning/renamedFrom/main.tsp +2 -1
- package/specs/versioning/returnTypeChangedFrom/main.tsp +2 -1
- package/specs/versioning/typeChangedFrom/main.tsp +2 -1
- package/temp/.tsbuildinfo +1 -1
- package/specs/type/property/nullable/client.tsp +0 -21
|
@@ -1,54 +1,42 @@
|
|
|
1
1
|
import "@typespec/http";
|
|
2
2
|
import "@typespec/spec-lib";
|
|
3
3
|
|
|
4
|
-
using
|
|
5
|
-
using
|
|
4
|
+
using Http;
|
|
5
|
+
using SpecLib;
|
|
6
6
|
|
|
7
7
|
@doc("Illustrates various of dictionaries.")
|
|
8
8
|
@scenarioService("/type/dictionary")
|
|
9
9
|
namespace Type.Dictionary;
|
|
10
10
|
|
|
11
11
|
@doc("Template to have dictionary operations")
|
|
12
|
-
interface DictionaryOperations<TDict, TDoc extends string> {
|
|
12
|
+
interface DictionaryOperations<TDict, TDoc extends valueof string> {
|
|
13
13
|
@scenario
|
|
14
|
-
@scenarioDoc(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
""",
|
|
21
|
-
{
|
|
22
|
-
doc: TDoc,
|
|
23
|
-
}
|
|
24
|
-
)
|
|
14
|
+
@scenarioDoc("""
|
|
15
|
+
Expected dictionary response body:
|
|
16
|
+
```json
|
|
17
|
+
${TDoc}
|
|
18
|
+
```
|
|
19
|
+
""")
|
|
25
20
|
@get
|
|
26
21
|
get(): TDict;
|
|
27
22
|
|
|
28
23
|
@scenario
|
|
29
|
-
@scenarioDoc(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
""",
|
|
36
|
-
{
|
|
37
|
-
doc: TDoc,
|
|
38
|
-
}
|
|
39
|
-
)
|
|
24
|
+
@scenarioDoc("""
|
|
25
|
+
Expected dictionary input body:
|
|
26
|
+
```json
|
|
27
|
+
${TDoc}
|
|
28
|
+
```
|
|
29
|
+
""")
|
|
40
30
|
@put
|
|
41
31
|
put(@body body: TDict): void;
|
|
42
32
|
}
|
|
43
33
|
|
|
44
34
|
@doc("Dictionary of int32 values")
|
|
45
35
|
@route("/int32")
|
|
46
|
-
@operationGroup
|
|
47
36
|
interface Int32Value extends DictionaryOperations<Record<int32>, "{'k1': 1, 'k2': 2}"> {}
|
|
48
37
|
|
|
49
38
|
@doc("Dictionary of int64 values")
|
|
50
39
|
@route("/int64")
|
|
51
|
-
@operationGroup
|
|
52
40
|
interface Int64Value
|
|
53
41
|
extends DictionaryOperations<
|
|
54
42
|
Record<int64>,
|
|
@@ -57,34 +45,28 @@ interface Int64Value
|
|
|
57
45
|
|
|
58
46
|
@doc("Dictionary of boolean values")
|
|
59
47
|
@route("/boolean")
|
|
60
|
-
@operationGroup
|
|
61
48
|
interface BooleanValue extends DictionaryOperations<Record<boolean>, "{'k1': true, 'k2': false}"> {}
|
|
62
49
|
|
|
63
50
|
@doc("Dictionary of string values")
|
|
64
51
|
@route("/string")
|
|
65
|
-
@operationGroup
|
|
66
52
|
interface StringValue extends DictionaryOperations<Record<string>, "{'k1': 'hello', 'k2': ''}"> {}
|
|
67
53
|
|
|
68
54
|
@doc("Dictionary of float values")
|
|
69
55
|
@route("/float32")
|
|
70
|
-
@operationGroup
|
|
71
56
|
interface Float32Value extends DictionaryOperations<Record<float32>, "{'k1': 43.125}"> {}
|
|
72
57
|
|
|
73
58
|
@doc("Dictionary of datetime values")
|
|
74
59
|
@route("/datetime")
|
|
75
|
-
@operationGroup
|
|
76
60
|
interface DatetimeValue
|
|
77
61
|
extends DictionaryOperations<Record<utcDateTime>, "{'k1': '2022-08-26T18:38:00Z'}"> {}
|
|
78
62
|
|
|
79
63
|
@doc("Dictionary of duration values")
|
|
80
64
|
@route("/duration")
|
|
81
|
-
@operationGroup
|
|
82
65
|
interface DurationValue
|
|
83
66
|
extends DictionaryOperations<Record<duration>, "{'k1': 'P123DT22H14M12.011S'}"> {}
|
|
84
67
|
|
|
85
68
|
@doc("Dictionary of unknown values")
|
|
86
69
|
@route("/unknown")
|
|
87
|
-
@operationGroup
|
|
88
70
|
interface UnknownValue
|
|
89
71
|
extends DictionaryOperations<Record<unknown>, "{'k1': 1, 'k2': 'hello', 'k3': null}"> {}
|
|
90
72
|
|
|
@@ -98,7 +80,6 @@ model InnerModel {
|
|
|
98
80
|
|
|
99
81
|
@doc("Dictionary of model values")
|
|
100
82
|
@route("/model")
|
|
101
|
-
@operationGroup
|
|
102
83
|
interface ModelValue
|
|
103
84
|
extends DictionaryOperations<
|
|
104
85
|
Record<InnerModel>,
|
|
@@ -107,7 +88,6 @@ interface ModelValue
|
|
|
107
88
|
|
|
108
89
|
@doc("Dictionary of model values")
|
|
109
90
|
@route("/model/recursive")
|
|
110
|
-
@operationGroup
|
|
111
91
|
interface RecursiveModelValue
|
|
112
92
|
extends DictionaryOperations<
|
|
113
93
|
Record<InnerModel>,
|
|
@@ -117,6 +97,5 @@ interface RecursiveModelValue
|
|
|
117
97
|
alias NullableFloat = float32 | null;
|
|
118
98
|
@doc("Dictionary of nullable float values")
|
|
119
99
|
@route("/nullable-float")
|
|
120
|
-
@operationGroup
|
|
121
100
|
interface NullableFloatValue
|
|
122
101
|
extends DictionaryOperations<Record<NullableFloat>, "{'k1': 1.25, 'k2': 0.5, 'k3': null}"> {}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "@typespec/http";
|
|
2
2
|
import "@typespec/spec-lib";
|
|
3
3
|
|
|
4
|
-
using
|
|
5
|
-
using
|
|
4
|
+
using Http;
|
|
5
|
+
using SpecLib;
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Illustrates the model templated cases. There is a base templated type and an instantiated type extending from it.
|
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
import "@typespec/http";
|
|
2
2
|
import "@typespec/spec-lib";
|
|
3
3
|
|
|
4
|
-
using
|
|
5
|
-
using
|
|
4
|
+
using Http;
|
|
5
|
+
using SpecLib;
|
|
6
6
|
|
|
7
7
|
@doc("Tests for additional properties of models")
|
|
8
8
|
@scenarioService("/type/property/additionalProperties")
|
|
9
9
|
namespace Type.Property.AdditionalProperties;
|
|
10
10
|
|
|
11
11
|
@doc("Template to have models operations")
|
|
12
|
-
interface ModelOperations<TModel, TDoc extends string> {
|
|
12
|
+
interface ModelOperations<TModel, TDoc extends valueof string> {
|
|
13
13
|
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "For testing"
|
|
14
14
|
@scenario
|
|
15
|
-
@scenarioDoc(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
""",
|
|
22
|
-
{
|
|
23
|
-
doc: TDoc,
|
|
24
|
-
}
|
|
25
|
-
)
|
|
15
|
+
@scenarioDoc("""
|
|
16
|
+
Expected response body:
|
|
17
|
+
```json
|
|
18
|
+
${TDoc}
|
|
19
|
+
```
|
|
20
|
+
""")
|
|
26
21
|
@get
|
|
27
22
|
@doc("Get call")
|
|
28
23
|
get(): TModel;
|
|
@@ -30,17 +25,12 @@ interface ModelOperations<TModel, TDoc extends string> {
|
|
|
30
25
|
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "For testing"
|
|
31
26
|
#suppress "@azure-tools/typespec-azure-core/bad-record-type" "For testing"
|
|
32
27
|
@scenario
|
|
33
|
-
@scenarioDoc(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
""",
|
|
40
|
-
{
|
|
41
|
-
doc: TDoc,
|
|
42
|
-
}
|
|
43
|
-
)
|
|
28
|
+
@scenarioDoc("""
|
|
29
|
+
Expected input body:
|
|
30
|
+
```json
|
|
31
|
+
${TDoc}
|
|
32
|
+
```
|
|
33
|
+
""")
|
|
44
34
|
@put
|
|
45
35
|
@doc("Put operation")
|
|
46
36
|
put(@body @doc("body") body: TModel): void;
|
|
@@ -55,7 +45,6 @@ model ExtendsUnknownAdditionalProperties extends Record<unknown> {
|
|
|
55
45
|
}
|
|
56
46
|
|
|
57
47
|
@route("/extendsRecordUnknown")
|
|
58
|
-
@operationGroup
|
|
59
48
|
interface ExtendsUnknown
|
|
60
49
|
extends ModelOperations<
|
|
61
50
|
ExtendsUnknownAdditionalProperties,
|
|
@@ -72,7 +61,6 @@ model ExtendsUnknownAdditionalPropertiesDerived extends ExtendsUnknownAdditional
|
|
|
72
61
|
}
|
|
73
62
|
|
|
74
63
|
@route("/extendsRecordUnknownDerived")
|
|
75
|
-
@operationGroup
|
|
76
64
|
interface ExtendsUnknownDerived
|
|
77
65
|
extends ModelOperations<
|
|
78
66
|
ExtendsUnknownAdditionalPropertiesDerived,
|
|
@@ -102,7 +90,6 @@ model ExtendsUnknownAdditionalPropertiesDiscriminatedDerived
|
|
|
102
90
|
}
|
|
103
91
|
|
|
104
92
|
@route("/extendsUnknownDiscriminated")
|
|
105
|
-
@operationGroup
|
|
106
93
|
interface ExtendsUnknownDiscriminated
|
|
107
94
|
extends ModelOperations<
|
|
108
95
|
ExtendsUnknownAdditionalPropertiesDiscriminated,
|
|
@@ -117,7 +104,6 @@ model IsUnknownAdditionalProperties is Record<unknown> {
|
|
|
117
104
|
}
|
|
118
105
|
|
|
119
106
|
@route("/isRecordUnknown")
|
|
120
|
-
@operationGroup
|
|
121
107
|
interface IsUnknown
|
|
122
108
|
extends ModelOperations<
|
|
123
109
|
IsUnknownAdditionalProperties,
|
|
@@ -134,7 +120,6 @@ model IsUnknownAdditionalPropertiesDerived extends IsUnknownAdditionalProperties
|
|
|
134
120
|
}
|
|
135
121
|
|
|
136
122
|
@route("/isRecordUnknownDerived")
|
|
137
|
-
@operationGroup
|
|
138
123
|
interface IsUnknownDerived
|
|
139
124
|
extends ModelOperations<
|
|
140
125
|
IsUnknownAdditionalPropertiesDerived,
|
|
@@ -164,7 +149,6 @@ model IsUnknownAdditionalPropertiesDiscriminatedDerived
|
|
|
164
149
|
}
|
|
165
150
|
|
|
166
151
|
@route("/isUnknownDiscriminated")
|
|
167
|
-
@operationGroup
|
|
168
152
|
interface IsUnknownDiscriminated
|
|
169
153
|
extends ModelOperations<
|
|
170
154
|
IsUnknownAdditionalPropertiesDiscriminated,
|
|
@@ -181,7 +165,6 @@ model ExtendsStringAdditionalProperties extends Record<string> {
|
|
|
181
165
|
}
|
|
182
166
|
|
|
183
167
|
@route("/extendsRecordString")
|
|
184
|
-
@operationGroup
|
|
185
168
|
interface ExtendsString
|
|
186
169
|
extends ModelOperations<
|
|
187
170
|
ExtendsStringAdditionalProperties,
|
|
@@ -196,7 +179,6 @@ model IsStringAdditionalProperties is Record<string> {
|
|
|
196
179
|
}
|
|
197
180
|
|
|
198
181
|
@route("/isRecordstring")
|
|
199
|
-
@operationGroup
|
|
200
182
|
interface IsString
|
|
201
183
|
extends ModelOperations<
|
|
202
184
|
IsStringAdditionalProperties,
|
|
@@ -212,7 +194,6 @@ model SpreadStringRecord {
|
|
|
212
194
|
}
|
|
213
195
|
|
|
214
196
|
@route("/spreadRecordString")
|
|
215
|
-
@operationGroup
|
|
216
197
|
interface SpreadString
|
|
217
198
|
extends ModelOperations<SpreadStringRecord, "{'name': 'SpreadSpringRecord', 'prop': 'abc'}"> {}
|
|
218
199
|
|
|
@@ -225,7 +206,6 @@ model ExtendsFloatAdditionalProperties extends Record<float32> {
|
|
|
225
206
|
}
|
|
226
207
|
|
|
227
208
|
@route("/extendsRecordFloat")
|
|
228
|
-
@operationGroup
|
|
229
209
|
interface ExtendsFloat
|
|
230
210
|
extends ModelOperations<ExtendsFloatAdditionalProperties, "{'id': 43.125, 'prop': 43.125}"> {}
|
|
231
211
|
|
|
@@ -237,7 +217,6 @@ model IsFloatAdditionalProperties is Record<float32> {
|
|
|
237
217
|
}
|
|
238
218
|
|
|
239
219
|
@route("/isRecordFloat")
|
|
240
|
-
@operationGroup
|
|
241
220
|
interface IsFloat
|
|
242
221
|
extends ModelOperations<IsFloatAdditionalProperties, "{'id': 43.125, 'prop': 43.125}"> {}
|
|
243
222
|
|
|
@@ -250,7 +229,6 @@ model SpreadFloatRecord {
|
|
|
250
229
|
}
|
|
251
230
|
|
|
252
231
|
@route("/spreadRecordFloat")
|
|
253
|
-
@operationGroup
|
|
254
232
|
interface SpreadFloat
|
|
255
233
|
extends ModelOperations<SpreadFloatRecord, "{'id': 43.125, 'prop': 43.125}"> {}
|
|
256
234
|
|
|
@@ -268,7 +246,6 @@ model ExtendsModelAdditionalProperties extends Record<ModelForRecord> {
|
|
|
268
246
|
}
|
|
269
247
|
|
|
270
248
|
@route("/extendsRecordModel")
|
|
271
|
-
@operationGroup
|
|
272
249
|
interface ExtendsModel
|
|
273
250
|
extends ModelOperations<
|
|
274
251
|
ExtendsModelAdditionalProperties,
|
|
@@ -282,7 +259,6 @@ model IsModelAdditionalProperties is Record<ModelForRecord> {
|
|
|
282
259
|
}
|
|
283
260
|
|
|
284
261
|
@route("/isRecordModel")
|
|
285
|
-
@operationGroup
|
|
286
262
|
interface IsModel
|
|
287
263
|
extends ModelOperations<
|
|
288
264
|
IsModelAdditionalProperties,
|
|
@@ -296,7 +272,6 @@ model SpreadModelRecord {
|
|
|
296
272
|
}
|
|
297
273
|
|
|
298
274
|
@route("/spreadRecordModel")
|
|
299
|
-
@operationGroup
|
|
300
275
|
interface SpreadModel
|
|
301
276
|
extends ModelOperations<
|
|
302
277
|
SpreadModelRecord,
|
|
@@ -311,7 +286,6 @@ model ExtendsModelArrayAdditionalProperties extends Record<ModelForRecord[]> {
|
|
|
311
286
|
}
|
|
312
287
|
|
|
313
288
|
@route("/extendsRecordModelArray")
|
|
314
|
-
@operationGroup
|
|
315
289
|
interface ExtendsModelArray
|
|
316
290
|
extends ModelOperations<
|
|
317
291
|
ExtendsModelArrayAdditionalProperties,
|
|
@@ -325,7 +299,6 @@ model IsModelArrayAdditionalProperties is Record<ModelForRecord[]> {
|
|
|
325
299
|
}
|
|
326
300
|
|
|
327
301
|
@route("/isRecordModelArray")
|
|
328
|
-
@operationGroup
|
|
329
302
|
interface IsModelArray
|
|
330
303
|
extends ModelOperations<
|
|
331
304
|
IsModelArrayAdditionalProperties,
|
|
@@ -338,7 +311,6 @@ model SpreadModelArrayRecord {
|
|
|
338
311
|
}
|
|
339
312
|
|
|
340
313
|
@route("/spreadRecordModelArray")
|
|
341
|
-
@operationGroup
|
|
342
314
|
interface SpreadModelArray
|
|
343
315
|
extends ModelOperations<
|
|
344
316
|
SpreadModelArrayRecord,
|
|
@@ -356,7 +328,6 @@ model DifferentSpreadStringRecord {
|
|
|
356
328
|
}
|
|
357
329
|
|
|
358
330
|
@route("/spreadDifferentRecordString")
|
|
359
|
-
@operationGroup
|
|
360
331
|
interface SpreadDifferentString
|
|
361
332
|
extends ModelOperations<DifferentSpreadStringRecord, "{'id': 43.125, 'prop': 'abc'}"> {}
|
|
362
333
|
|
|
@@ -370,7 +341,6 @@ model DifferentSpreadFloatRecord {
|
|
|
370
341
|
}
|
|
371
342
|
|
|
372
343
|
@route("/spreadDifferentRecordFloat")
|
|
373
|
-
@operationGroup
|
|
374
344
|
interface SpreadDifferentFloat
|
|
375
345
|
extends ModelOperations<DifferentSpreadFloatRecord, "{'name': 'abc', 'prop': 43.125}"> {}
|
|
376
346
|
|
|
@@ -382,7 +352,6 @@ model DifferentSpreadModelRecord {
|
|
|
382
352
|
}
|
|
383
353
|
|
|
384
354
|
@route("/spreadDifferentRecordModel")
|
|
385
|
-
@operationGroup
|
|
386
355
|
interface SpreadDifferentModel
|
|
387
356
|
extends ModelOperations<
|
|
388
357
|
DifferentSpreadModelRecord,
|
|
@@ -397,7 +366,6 @@ model DifferentSpreadModelArrayRecord {
|
|
|
397
366
|
}
|
|
398
367
|
|
|
399
368
|
@route("/spreadDifferentRecordModelArray")
|
|
400
|
-
@operationGroup
|
|
401
369
|
interface SpreadDifferentModelArray
|
|
402
370
|
extends ModelOperations<
|
|
403
371
|
DifferentSpreadModelArrayRecord,
|
|
@@ -412,7 +380,6 @@ model DifferentSpreadStringDerived extends DifferentSpreadStringRecord {
|
|
|
412
380
|
}
|
|
413
381
|
|
|
414
382
|
@route("/extendsDifferentSpreadString")
|
|
415
|
-
@operationGroup
|
|
416
383
|
interface ExtendsDifferentSpreadString
|
|
417
384
|
extends ModelOperations<
|
|
418
385
|
DifferentSpreadStringDerived,
|
|
@@ -427,7 +394,6 @@ model DifferentSpreadFloatDerived extends DifferentSpreadFloatRecord {
|
|
|
427
394
|
}
|
|
428
395
|
|
|
429
396
|
@route("/extendsDifferentSpreadFloat")
|
|
430
|
-
@operationGroup
|
|
431
397
|
interface ExtendsDifferentSpreadFloat
|
|
432
398
|
extends ModelOperations<
|
|
433
399
|
DifferentSpreadFloatDerived,
|
|
@@ -443,7 +409,6 @@ model DifferentSpreadModelDerived extends DifferentSpreadModelRecord {
|
|
|
443
409
|
}
|
|
444
410
|
|
|
445
411
|
@route("/extendsDifferentSpreadModel")
|
|
446
|
-
@operationGroup
|
|
447
412
|
interface ExtendsDifferentSpreadModel
|
|
448
413
|
extends ModelOperations<
|
|
449
414
|
DifferentSpreadModelDerived,
|
|
@@ -458,7 +423,6 @@ model DifferentSpreadModelArrayDerived extends DifferentSpreadModelArrayRecord {
|
|
|
458
423
|
}
|
|
459
424
|
|
|
460
425
|
@route("/extendsDifferentSpreadModelArray")
|
|
461
|
-
@operationGroup
|
|
462
426
|
interface ExtendsDifferentSpreadModelArray
|
|
463
427
|
extends ModelOperations<
|
|
464
428
|
DifferentSpreadModelArrayDerived,
|
|
@@ -476,7 +440,6 @@ model MultipleSpreadRecord {
|
|
|
476
440
|
}
|
|
477
441
|
|
|
478
442
|
@route("/multipleSpreadRecord")
|
|
479
|
-
@operationGroup
|
|
480
443
|
interface MultipleSpread
|
|
481
444
|
extends ModelOperations<
|
|
482
445
|
MultipleSpreadRecord,
|
|
@@ -493,7 +456,6 @@ model SpreadRecordForUnion {
|
|
|
493
456
|
}
|
|
494
457
|
|
|
495
458
|
@route("/spreadRecordUnion")
|
|
496
|
-
@operationGroup
|
|
497
459
|
interface SpreadRecordUnion
|
|
498
460
|
extends ModelOperations<
|
|
499
461
|
SpreadRecordForUnion,
|
|
@@ -532,7 +494,6 @@ model SpreadRecordForDiscriminatedUnion {
|
|
|
532
494
|
}
|
|
533
495
|
|
|
534
496
|
@route("/spreadRecordDiscriminatedUnion")
|
|
535
|
-
@operationGroup
|
|
536
497
|
interface SpreadRecordDiscriminatedUnion
|
|
537
498
|
extends ModelOperations<
|
|
538
499
|
SpreadRecordForDiscriminatedUnion,
|
|
@@ -549,7 +510,6 @@ model SpreadRecordForNonDiscriminatedUnion {
|
|
|
549
510
|
}
|
|
550
511
|
|
|
551
512
|
@route("/spreadRecordNonDiscriminatedUnion")
|
|
552
|
-
@operationGroup
|
|
553
513
|
interface SpreadRecordNonDiscriminatedUnion
|
|
554
514
|
extends ModelOperations<
|
|
555
515
|
SpreadRecordForNonDiscriminatedUnion,
|
|
@@ -566,7 +526,6 @@ model SpreadRecordForNonDiscriminatedUnion2 {
|
|
|
566
526
|
}
|
|
567
527
|
|
|
568
528
|
@route("/spreadRecordNonDiscriminatedUnion2")
|
|
569
|
-
@operationGroup
|
|
570
529
|
interface SpreadRecordNonDiscriminatedUnion2
|
|
571
530
|
extends ModelOperations<
|
|
572
531
|
SpreadRecordForNonDiscriminatedUnion2,
|
|
@@ -583,7 +542,6 @@ model SpreadRecordForNonDiscriminatedUnion3 {
|
|
|
583
542
|
}
|
|
584
543
|
|
|
585
544
|
@route("/spreadRecordNonDiscriminatedUnion3")
|
|
586
|
-
@operationGroup
|
|
587
545
|
interface SpreadRecordNonDiscriminatedUnion3
|
|
588
546
|
extends ModelOperations<
|
|
589
547
|
SpreadRecordForNonDiscriminatedUnion3,
|