Commit 0224df0
fix: strip schemaId/typeName from operation PATCH during reconciliation (#111)
* fix: strip schemaId/typeName from operation PATCH during reconciliation
After spec import, APIM assigns its own auto-generated schema IDs to
operation request/response representations. The reconciliation PATCH was
sending the source instance's schema IDs, which don't exist on the target.
APIM silently drops schemaId/typeName when the referenced schema doesn't
exist, causing the compare phase to report missing fields.
By stripping these fields from the PATCH body, APIM retains the schema
references it assigned during its own spec import. The compare script
already normalizes auto-generated hex IDs, so both sides match.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* chore: make reconciliation comments terse
* docs: tighten reconciliation comments
* docs(squad): record schema-ref reconciliation decision
* updating cmd to create log file
* updating squad files
* skipping schema ids, doing semantic compare
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>1 parent 0942ffa commit 0224df0
5 files changed
Lines changed: 567 additions & 226 deletions
File tree
- .squad
- src/services
- tests/integration/all-resource-types
- modules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
5 | 22 | | |
6 | 23 | | |
7 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
440 | 443 | | |
441 | 444 | | |
442 | 445 | | |
| |||
459 | 462 | | |
460 | 463 | | |
461 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
462 | 498 | | |
463 | 499 | | |
464 | 500 | | |
| |||
0 commit comments