fix(core-flows, medusa): Prevent cart addresses duplication on update (#13841)

* Allow id field in addresses properties for cart update validator

* Update cart addresses in update step where id is provided, both reference and nested fields

* Add tests

* Add changeset

* Remove unnecessary map step

* Review changes
This commit is contained in:
Nicolas Gorga
2025-12-09 21:49:16 -03:00
committed by GitHub
parent 4dbf46f2cb
commit fdc2b722d9
4 changed files with 337 additions and 5 deletions

View File

@@ -0,0 +1,7 @@
---
"@medusajs/core-flows": patch
"@medusajs/medusa": patch
---
fix(medusa): Allow 'id' in shipping_address and billing_address in validator of store udpate cart route
fix(core-flows): Update addresses nested fields when 'id' is provided in payload for update-carts step