Repository navigation
Commit 71106d2
authored
fix(api): declare columns and binary downloads the document omitted (#941)
Six persisted columns carried @column and class-validator decorators but
no @ApiProperty, so they were absent from the document entirely and the
generated client could not send or read them:
scan organizerId, which the event check-in endpoint requires,
so check-in was impossible from a typed client
registration shareAddressMlh, shareAddressSponsors, shareEmailMlh
finance amount
inventory reason
The two resume downloads declared StreamableFile as their response type.
That is a Nest transport wrapper rather than a response shape, and it
leaked into the document as an empty object, so the generated client typed
a zip archive as an object with no properties. Both routes already set a
Content-Type header; the document now matches, and StreamableFile is gone
from components.schemas.
GET /users/resumes application/zip
GET /users/{id}/resume application/pdf
Found by auditing every @column against its @ApiProperty, and by tracing
why the sponsor scanner could not build a check-in payload.
No runtime change.1 parent 7d2a5c6 commit 71106d2
13 files changed
Lines changed: 74 additions & 46 deletions
File tree
- packages/api-client/src/generated
- model
- users
- src
- entities
- modules
- event
- user
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| 153 | + | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| |||
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| 166 | + | |
164 | 167 | | |
165 | 168 | | |
166 | 169 | | |
| |||
0 commit comments