Commit 1e0e4a3
committed
test: Map dataSystem.fdv1Fallback JSON field with explicit JsonPropertyName
The contract-test service uses System.Text.Json with PropertyNamingPolicy =
CamelCase. CamelCase converts the C# property name FDv1Fallback to
"fDv1Fallback" (only the first character lowercased), but the harness
sends the field as "fdv1Fallback" (lowercase 'd' too). The mismatch made
sdkParams.DataSystem.FDv1Fallback always null, which meant
dataSystemBuilder.FDv1FallbackSynchronizer(...) was never called, which
meant dataSystemConfiguration.FDv1FallbackSynchronizer was null, which
caused the OUTER composite's FDv1 fallback factory to throw NRE the moment
the action applier tried to invoke it.
Add an explicit [JsonPropertyName("fdv1Fallback")] attribute so the
deserializer accepts the harness's wire format. Also remove the temporary
debug logging from CompositeSource and SdkClientEntity that was used to
identify the bug.1 parent 15656d7 commit 1e0e4a3
3 files changed
Lines changed: 7 additions & 34 deletions
File tree
- pkgs/sdk/server
- contract-tests
- src/Internal/DataSources/CompositeDataSource
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
158 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
512 | | - | |
513 | 512 | | |
514 | 513 | | |
515 | | - | |
516 | 514 | | |
517 | 515 | | |
518 | 516 | | |
| |||
526 | 524 | | |
527 | 525 | | |
528 | 526 | | |
529 | | - | |
530 | 527 | | |
531 | 528 | | |
532 | 529 | | |
| |||
Lines changed: 3 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | 155 | | |
157 | 156 | | |
158 | 157 | | |
| |||
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
168 | | - | |
169 | 167 | | |
170 | 168 | | |
171 | 169 | | |
| |||
177 | 175 | | |
178 | 176 | | |
179 | 177 | | |
180 | | - | |
181 | 178 | | |
182 | 179 | | |
183 | 180 | | |
| |||
186 | 183 | | |
187 | 184 | | |
188 | 185 | | |
189 | | - | |
190 | | - | |
191 | 186 | | |
192 | 187 | | |
193 | 188 | | |
| |||
204 | 199 | | |
205 | 200 | | |
206 | 201 | | |
207 | | - | |
| 202 | + | |
208 | 203 | | |
209 | | - | |
210 | 204 | | |
| 205 | + | |
211 | 206 | | |
212 | 207 | | |
213 | 208 | | |
214 | 209 | | |
215 | 210 | | |
216 | 211 | | |
217 | 212 | | |
218 | | - | |
219 | | - | |
220 | 213 | | |
221 | 214 | | |
222 | 215 | | |
223 | 216 | | |
224 | 217 | | |
225 | 218 | | |
226 | | - | |
227 | | - | |
228 | 219 | | |
229 | 220 | | |
230 | 221 | | |
| |||
253 | 244 | | |
254 | 245 | | |
255 | 246 | | |
256 | | - | |
257 | | - | |
258 | 247 | | |
259 | 248 | | |
260 | 249 | | |
261 | 250 | | |
262 | 251 | | |
263 | 252 | | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
| 253 | + | |
276 | 254 | | |
277 | 255 | | |
278 | 256 | | |
| |||
281 | 259 | | |
282 | 260 | | |
283 | 261 | | |
284 | | - | |
285 | 262 | | |
286 | 263 | | |
287 | 264 | | |
288 | | - | |
289 | 265 | | |
290 | 266 | | |
291 | 267 | | |
292 | 268 | | |
293 | | - | |
294 | 269 | | |
295 | 270 | | |
296 | 271 | | |
| |||
301 | 276 | | |
302 | 277 | | |
303 | 278 | | |
304 | | - | |
305 | | - | |
306 | 279 | | |
307 | 280 | | |
308 | 281 | | |
| |||
0 commit comments