- Notifications
You must be signed in to change notification settings - Fork928
Commitaab400c
authored
feat: Add support for json omitempty and embedded structs in apitypings (#1318)
* feat: Add support for json omitempty to apitypings* feat: Express embedded structs via extends in TypeScript* Handle unembedding via json field in apitypings* Add scripts/apitypings/main.go to Makefile1 parent13fc406 commitaab400c
File tree
4 files changed
+43
-20
lines changed- codersdk
- scripts/apitypings
- site/src/api
4 files changed
+43
-20
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
86 |
| - | |
| 86 | + | |
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
| 21 | + | |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
|
Lines changed: 28 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
237 | 237 |
| |
238 | 238 |
| |
239 | 239 |
| |
| 240 | + | |
240 | 241 |
| |
241 |
| - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
242 | 260 |
| |
243 | 261 |
| |
| 262 | + | |
| 263 | + | |
| 264 | + | |
244 | 265 |
| |
245 | 266 |
| |
246 | 267 |
| |
| |||
251 | 272 |
| |
252 | 273 |
| |
253 | 274 |
| |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
254 | 279 |
| |
255 | 280 |
| |
256 | 281 |
| |
| |||
273 | 298 |
| |
274 | 299 |
| |
275 | 300 |
| |
276 |
| - | |
| 301 | + | |
277 | 302 |
| |
278 | 303 |
| |
279 | 304 |
| |
| |||
322 | 347 |
| |
323 | 348 |
| |
324 | 349 |
| |
325 |
| - | |
| 350 | + | |
326 | 351 |
| |
327 | 352 |
| |
328 | 353 |
| |
|
Lines changed: 11 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
94 |
| - | |
| 94 | + | |
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
| |||
149 | 149 |
| |
150 | 150 |
| |
151 | 151 |
| |
152 |
| - | |
153 |
| - | |
154 |
| - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
155 | 155 |
| |
156 | 156 |
| |
157 | 157 |
| |
| |||
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
188 |
| - | |
| 188 | + | |
189 | 189 |
| |
190 | 190 |
| |
191 | 191 |
| |
| |||
264 | 264 |
| |
265 | 265 |
| |
266 | 266 |
| |
267 |
| - | |
| 267 | + | |
268 | 268 |
| |
269 |
| - | |
270 | 269 |
| |
271 | 270 |
| |
272 | 271 |
| |
| |||
323 | 322 |
| |
324 | 323 |
| |
325 | 324 |
| |
326 |
| - | |
| 325 | + | |
327 | 326 |
| |
328 | 327 |
| |
329 |
| - | |
330 | 328 |
| |
331 | 329 |
| |
332 | 330 |
| |
| |||
355 | 353 |
| |
356 | 354 |
| |
357 | 355 |
| |
358 |
| - | |
| 356 | + | |
359 | 357 |
| |
360 | 358 |
| |
361 | 359 |
| |
362 |
| - | |
363 |
| - | |
| 360 | + | |
| 361 | + | |
364 | 362 |
| |
365 | 363 |
| |
366 | 364 |
| |
| |||
415 | 413 |
| |
416 | 414 |
| |
417 | 415 |
| |
418 |
| - | |
| 416 | + | |
419 | 417 |
| |
420 | 418 |
| |
421 | 419 |
| |
|
0 commit comments
Comments
(0)