feat(oas): add @schema OAS for address request payloads (#3423)

## What

Replace AddressFields with actual AddressPayload schema based off the actual type used by the controllers.

## Why

AddressPayload is currently being referenced in client code. Our OAS schema should attempt to match current client usage in order to reduce friction when migrating to a OAS generated types package.

## How

* Represent AddressPayload and AddressCreatePayload in our OAS schemas.
* Replace reference to AddressFields
* Plus, fix typo in /admin/orders/ route
This commit is contained in:
Patrick
2023-03-09 14:31:40 +00:00
committed by GitHub
parent 784723a039
commit 4042beb102
14 changed files with 130 additions and 83 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
feat(oas): add @schema OAS for address request payloads