-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(oas): add missing x-codegen + fix schema naming and $ref #3312
Changes from 3 commits
ea6bbf1
194f5e5
efda8f4
0378708
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@medusajs/medusa": patch | ||
--- | ||
|
||
fix(oas): add missing x-codegen + fix schema naming and $ref |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -51,6 +51,9 @@ import { AdminInventoryItemsListWithVariantsAndLocationLevelsRes } from "." | |||||||||
* - (query) height {string} height to search for. | ||||||||||
* - (query) width {string} width to search for. | ||||||||||
* - (query) requires_shipping {string} requires_shipping to search for. | ||||||||||
* x-codegen: | ||||||||||
* method: list | ||||||||||
* queryParams: AdminGetInventoryItemsParams | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/inventory-item.ts Lines 85 to 88 in 194f5e5
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: JavaScript | ||||||||||
* label: JS Client | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -15,6 +15,9 @@ import { FindParams } from "../../../../types/common" | |||||||||||
* - (query) limit=20 {integer} Limit the number of stock locations levels returned. | ||||||||||||
* - (query) expand {string} Comma separated list of relations to include in the results. | ||||||||||||
* - (query) fields {string} Comma separated list of fields to include in the results. | ||||||||||||
* x-codegen: | ||||||||||||
* method: listLocationLevels | ||||||||||||
* queryParams: AdminGetInventoryItemsItemLocationLevelsParams | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/inventory-item.ts Lines 176 to 180 in 194f5e5
|
||||||||||||
* x-codeSamples: | ||||||||||||
* - lang: JavaScript | ||||||||||||
* label: JS Client | ||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,7 @@ export default (app) => { | |
} | ||
|
||
/** | ||
* @schema AdminPostReservationsReq | ||
* @schema AdminReservationsRes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: schema name was not matching type name |
||
* type: object | ||
* required: | ||
* - reservation | ||
|
@@ -69,7 +69,7 @@ export type AdminReservationsRes = { | |
} | ||
|
||
/** | ||
* @schema AdminGetReservationReservationsReq | ||
* @schema AdminReservationsListRes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: schema name was not matching type name |
||
* type: object | ||
* required: | ||
* - reservations | ||
|
@@ -108,6 +108,26 @@ export const defaultReservationFields = [ | |
"updated_at", | ||
] | ||
|
||
/** | ||
* @schema AdminReservationsDeleteRes | ||
* type: object | ||
* required: | ||
* - id | ||
* - object | ||
* - deleted | ||
* properties: | ||
* id: | ||
* type: string | ||
* description: The ID of the deleted Reservation. | ||
* object: | ||
* type: string | ||
* description: The type of the object that was deleted. | ||
* default: reservation | ||
* deleted: | ||
* type: boolean | ||
* description: Whether or not the Reservation was deleted. | ||
* default: true | ||
*/ | ||
export type AdminReservationsDeleteRes = DeleteResponse | ||
|
||
export * from "./create-reservation" | ||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -63,6 +63,9 @@ import { | |||||||||
* - (query) limit=20 {integer} Limit the number of Reservations returned. | ||||||||||
* - (query) expand {string} (Comma separated) Which fields should be expanded in the product category. | ||||||||||
* - (query) fields {string} (Comma separated) Which fields should be included in the product category. | ||||||||||
* x-codegen: | ||||||||||
* method: list | ||||||||||
* queryParams: AdminGetReservationsParams | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. medusa/packages/medusa-js/src/resources/admin/reservations.ts Lines 36 to 39 in 194f5e5
|
||||||||||
* x-codeSamples: | ||||||||||
* - lang: Shell | ||||||||||
* label: cURL | ||||||||||
|
@@ -80,7 +83,7 @@ import { | |||||||||
* content: | ||||||||||
* application/json: | ||||||||||
* schema: | ||||||||||
* $ref: "#/components/schemas/AdminGetReservationReservationsReq" | ||||||||||
* $ref: "#/components/schemas/AdminReservationsListRes" | ||||||||||
* "400": | ||||||||||
* $ref: "#/components/responses/400_error" | ||||||||||
* "401": | ||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
medusa/packages/medusa-js/src/resources/admin/inventory-item.ts
Lines 25 to 29 in 194f5e5