Commit 45f26fe
[typescript-rxjs] performance improvements, bugfix for falsy parameters (#4250)
* perf(typescript-rxjs): remove redundant check when building auth header
* feat(typescript-rxjs): destructure request parameters, add throwIfNullOrUndefined helper, build query object more efficently
* fix(typescript-rxjs): change form checks back from null to undefined
* feat(typescript-rxjs): regenerate samples
* feat(typescript-rxjs): add hasRequiredQueryParams flag for improved query object generation
* feat(typescript-rxjs): remove trailing comma in param destructuring, improve formatting via hasOptionalQueryParams flag
* feat(typescript-rxjs): remove useless generics in BaseAPI
* feat(typescript-rxjs): regenerate samples
* feat(typescript-rxjs): extend CodegenParameter by output.paramNameAlternative and output.paramNameOrAlternative
* refactor(typescript-rxjs): remove obsolete reservedWords RequiredError and exists
* feat(typescript-rxjs): add reservedParamNames list with headers, query and formData, extend param processing
* feat(typescript-rxjs): use paramNameOrAlternative in api template
* refactor(typescript-rxjs): replace paramNameOrAlternative prop with mustache partial
* refactor(typescript-rxjs): reduce branching in configuration's apiKey() and accessToken()
* refactor(typescript-rxjs): remove unused ModelPropertyNaming
* feat(typescript-rxjs): regenerate samples
* feat(typescript-rxjs): remove CodegenParamter's paramNameAlternative, use vendorExtensions instead
* docs(typescript-rxjs): regenerate readme1 parent 4f350bc commit 45f26fe
21 files changed
Lines changed: 661 additions & 587 deletions
File tree
- docs/generators
- modules/openapi-generator/src/main
- java/org/openapitools/codegen/languages
- resources/typescript-rxjs
- samples/client/petstore/typescript-rxjs/builds
- default
- apis
- es6-target
- apis
- with-interfaces
- apis
- with-npm-version
- apis
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | 70 | | |
72 | 71 | | |
73 | | - | |
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
| |||
90 | 88 | | |
91 | 89 | | |
92 | 90 | | |
93 | | - | |
94 | 91 | | |
95 | 92 | | |
96 | 93 | | |
| |||
Lines changed: 59 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 30 | + | |
32 | 31 | | |
33 | 32 | | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| |||
252 | 258 | | |
253 | 259 | | |
254 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
255 | 267 | | |
256 | 268 | | |
257 | 269 | | |
258 | 270 | | |
259 | 271 | | |
260 | | - | |
| 272 | + | |
261 | 273 | | |
262 | 274 | | |
263 | 275 | | |
264 | 276 | | |
265 | 277 | | |
266 | 278 | | |
267 | 279 | | |
268 | | - | |
| 280 | + | |
269 | 281 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
275 | 289 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
281 | 297 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
287 | 320 | | |
288 | 321 | | |
289 | 322 | | |
| |||
296 | 329 | | |
297 | 330 | | |
298 | 331 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | 332 | | |
304 | 333 | | |
305 | | - | |
| 334 | + | |
306 | 335 | | |
307 | 336 | | |
308 | 337 | | |
| |||
312 | 341 | | |
313 | 342 | | |
314 | 343 | | |
315 | | - | |
316 | 344 | | |
317 | 345 | | |
318 | 346 | | |
319 | 347 | | |
320 | 348 | | |
321 | 349 | | |
322 | 350 | | |
323 | | - | |
324 | 351 | | |
325 | 352 | | |
326 | 353 | | |
327 | | - | |
328 | 354 | | |
329 | 355 | | |
330 | 356 | | |
331 | 357 | | |
332 | 358 | | |
333 | 359 | | |
334 | 360 | | |
| 361 | + | |
| 362 | + | |
335 | 363 | | |
336 | 364 | | |
337 | 365 | | |
| |||
405 | 433 | | |
406 | 434 | | |
407 | 435 | | |
| 436 | + | |
| 437 | + | |
408 | 438 | | |
409 | 439 | | |
410 | 440 | | |
Lines changed: 69 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
| 78 | + | |
| 79 | + | |
80 | 80 | | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
90 | 95 | | |
| 96 | + | |
91 | 97 | | |
92 | 98 | | |
93 | | - | |
| 99 | + | |
94 | 100 | | |
95 | 101 | | |
96 | | - | |
| 102 | + | |
97 | 103 | | |
98 | 104 | | |
99 | 105 | | |
100 | 106 | | |
101 | | - | |
| 107 | + | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
105 | | - | |
| 111 | + | |
106 | 112 | | |
107 | 113 | | |
108 | | - | |
| 114 | + | |
109 | 115 | | |
110 | 116 | | |
111 | 117 | | |
| 118 | + | |
112 | 119 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
121 | 157 | | |
122 | 158 | | |
123 | 159 | | |
124 | 160 | | |
125 | | - | |
126 | 161 | | |
127 | 162 | | |
128 | | - | |
| 163 | + | |
129 | 164 | | |
130 | | - | |
131 | | - | |
132 | | - | |
| 165 | + | |
133 | 166 | | |
134 | 167 | | |
135 | | - | |
| 168 | + | |
136 | 169 | | |
137 | 170 | | |
138 | 171 | | |
139 | 172 | | |
140 | 173 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 174 | + | |
145 | 175 | | |
146 | 176 | | |
| 177 | + | |
| 178 | + | |
147 | 179 | | |
148 | | - | |
| 180 | + | |
149 | 181 | | |
150 | 182 | | |
151 | 183 | | |
| |||
156 | 188 | | |
157 | 189 | | |
158 | 190 | | |
159 | | - | |
| 191 | + | |
160 | 192 | | |
161 | 193 | | |
162 | 194 | | |
163 | | - | |
| 195 | + | |
164 | 196 | | |
165 | 197 | | |
166 | | - | |
| 198 | + | |
167 | 199 | | |
168 | 200 | | |
169 | 201 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments