Commit dbf4ef1
fix: align cross-version field mapping between client SDK and server API (#505)
- Add MinClientVersion, SourceArchiveHash, TargetArchiveHash fields to VersionEntry with JSON property names
- Fix HttpDownloadSource.MapVersionEntry to correctly map these fields (TargetArchiveHash was mapped to package hash instead of archive hash)
- Remove unused ToVersion field from VersionEntry (no consumer in the SDK — target version is already represented by Version field)
This completes the cross-version update field alignment:
- MinClientVersion now flows end-to-end from server DB -> API -> client SDK -> DownloadPlanBuilder.IsCompatible()
- SourceArchiveHash/TargetArchiveHash now correctly map for CVP traceability
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent b2ae167 commit dbf4ef1
2 files changed
Lines changed: 25 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | 199 | | |
201 | 200 | | |
202 | 201 | | |
203 | 202 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | 203 | | |
216 | 204 | | |
217 | 205 | | |
218 | 206 | | |
219 | 207 | | |
220 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
221 | 230 | | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
186 | 188 | | |
187 | 189 | | |
188 | 190 | | |
| |||
0 commit comments