Commit 33ae4d9
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>1 parent 31b9bef commit 33ae4d9
1 file changed
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
437 | 444 | | |
438 | 445 | | |
439 | 446 | | |
| |||
456 | 463 | | |
457 | 464 | | |
458 | 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 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
459 | 507 | | |
460 | 508 | | |
461 | 509 | | |
| |||
0 commit comments