Skip to content

Commit

Permalink
Merge branch 'develop' into test/transaction-lock-recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
olivermrbl authored Dec 2, 2022
2 parents 07d762a + 1dc8160 commit ebe7391
Show file tree
Hide file tree
Showing 351 changed files with 460 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shiny-tips-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---

chore(oas): explicitly declare type:object on schemas with properties
1 change: 1 addition & 0 deletions packages/medusa/src/api/middlewares/await-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default (fn: handler): RequestHandler => {
* @schema multiple_errors
* title: "Multiple Errors"
* x-resourceId: multiple_errors
* type: object
* properties:
* errors:
* type: array
Expand Down
1 change: 1 addition & 0 deletions packages/medusa/src/api/middlewares/error-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export default () => {
* @schema error
* title: "Response Error"
* x-resourceId: error
* type: object
* properties:
* code:
* type: string
Expand Down
2 changes: 2 additions & 0 deletions packages/medusa/src/api/routes/admin/apps/authorize-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* required:
* - application_name
* - state
Expand Down Expand Up @@ -50,6 +51,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* properties:
* apps:
* $ref: "#/components/schemas/OAuth"
Expand Down
1 change: 1 addition & 0 deletions packages/medusa/src/api/routes/admin/apps/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { OauthService } from "../../../../services"
* content:
* application/json:
* schema:
* type: object
* properties:
* apps:
* type: array
Expand Down
2 changes: 2 additions & 0 deletions packages/medusa/src/api/routes/admin/auth/create-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* required:
* - email
* - password
Expand Down Expand Up @@ -61,6 +62,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* properties:
* user:
* $ref: "#/components/schemas/user"
Expand Down
1 change: 1 addition & 0 deletions packages/medusa/src/api/routes/admin/auth/get-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import _ from "lodash"
* content:
* application/json:
* schema:
* type: object
* properties:
* user:
* $ref: "#/components/schemas/user"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { EntityManager } from "typeorm"
* content:
* application/json:
* schema:
* type: object
* properties:
* batch_job:
* $ref: "#/components/schemas/batch_job"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { EntityManager } from "typeorm"
* content:
* application/json:
* schema:
* type: object
* properties:
* batch_job:
* $ref: "#/components/schemas/batch_job"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* required:
* - type
* - context
Expand Down Expand Up @@ -81,6 +82,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* properties:
* batch_job:
* $ref: "#/components/schemas/batch_job"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* content:
* application/json:
* schema:
* type: object
* properties:
* batch_job:
* $ref: "#/components/schemas/batch_job"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ import { isDefined } from "../../../../utils"
* content:
* application/json:
* schema:
* type: object
* properties:
* batch_jobs:
* type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import ProductCollectionService from "../../../../services/product-collection"
* content:
* application/json:
* schema:
* type: object
* required:
* - product_ids
* properties:
Expand Down Expand Up @@ -48,6 +49,7 @@ import ProductCollectionService from "../../../../services/product-collection"
* content:
* application/json:
* schema:
* type: object
* properties:
* collection:
* $ref: "#/components/schemas/product_collection"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { EntityManager } from "typeorm"
* content:
* application/json:
* schema:
* type: object
* required:
* - title
* properties:
Expand Down Expand Up @@ -58,6 +59,7 @@ import { EntityManager } from "typeorm"
* content:
* application/json:
* schema:
* type: object
* properties:
* collection:
* $ref: "#/components/schemas/product_collection"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import ProductCollectionService from "../../../../services/product-collection"
* content:
* application/json:
* schema:
* type: object
* properties:
* id:
* type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import { defaultAdminCollectionsRelations } from "."
* content:
* application/json:
* schema:
* type: object
* properties:
* collection:
* $ref: "#/components/schemas/product_collection"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ import { Type } from "class-transformer"
* content:
* application/json:
* schema:
* type: object
* properties:
* collections:
* type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import ProductCollectionService from "../../../../services/product-collection"
* content:
* application/json:
* schema:
* type: object
* required:
* - product_ids
* properties:
Expand Down Expand Up @@ -48,6 +49,7 @@ import ProductCollectionService from "../../../../services/product-collection"
* content:
* application/json:
* schema:
* type: object
* properties:
* id:
* type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import ProductCollectionService from "../../../../services/product-collection"
* content:
* application/json:
* schema:
* type: object
* properties:
* title:
* type: string
Expand Down Expand Up @@ -58,6 +59,7 @@ import ProductCollectionService from "../../../../services/product-collection"
* content:
* application/json:
* schema:
* type: object
* properties:
* collection:
* $ref: "#/components/schemas/product_collection"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import { FeatureFlagDecorators } from "../../../../utils/feature-flag-decorators
* content:
* application/json:
* schema:
* type: object
* properties:
* currencies:
* type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import TaxInclusivePricingFeatureFlag from "../../../../loaders/feature-flags/ta
* content:
* application/json:
* schema:
* type: object
* properties:
* includes_tax:
* type: boolean
Expand Down Expand Up @@ -51,6 +52,7 @@ import TaxInclusivePricingFeatureFlag from "../../../../loaders/feature-flags/ta
* content:
* application/json:
* schema:
* type: object
* properties:
* currency:
* $ref: "#/components/schemas/currency"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* required:
* - customer_ids
* properties:
Expand Down Expand Up @@ -73,6 +74,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* properties:
* customer_group:
* $ref: "#/components/schemas/customer_group"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* properties:
* customer_group:
* $ref: "#/components/schemas/customer_group"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { EntityManager } from "typeorm"
* content:
* application/json:
* schema:
* type: object
* properties:
* id:
* type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* required:
* - customer_ids
* properties:
Expand Down Expand Up @@ -73,6 +74,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* properties:
* customer_group:
* $ref: "#/components/schemas/customer_group"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import CustomerController from "../../../../controllers/customers"
* content:
* application/json:
* schema:
* type: object
* properties:
* customers:
* type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { FindParams } from "../../../../types/common"
* content:
* application/json:
* schema:
* type: object
* properties:
* customer_group:
* $ref: "#/components/schemas/customer_group"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ import { Type } from "class-transformer"
* content:
* application/json:
* schema:
* type: object
* properties:
* customer_groups:
* type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* properties:
* name:
* description: "Name of the customer group"
Expand Down Expand Up @@ -59,6 +60,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* properties:
* customer_group:
* $ref: "#/components/schemas/customer_group"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { EntityManager } from "typeorm"
* content:
* application/json:
* schema:
* type: object
* required:
* - email
* - first_name
Expand Down Expand Up @@ -79,6 +80,7 @@ import { EntityManager } from "typeorm"
* content:
* application/json:
* schema:
* type: object
* properties:
* customer:
* $ref: "#/components/schemas/customer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* properties:
* customer:
* $ref: "#/components/schemas/customer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import customerController from "../../../../controllers/customers"
* content:
* application/json:
* schema:
* type: object
* properties:
* customers:
* type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* properties:
* email:
* type: string
Expand Down Expand Up @@ -93,6 +94,7 @@ import { validator } from "../../../../utils/validator"
* content:
* application/json:
* schema:
* type: object
* properties:
* customer:
* $ref: "#/components/schemas/customer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { EntityManager } from "typeorm"
* content:
* application/json:
* schema:
* type: object
* properties:
* discount:
* $ref: "#/components/schemas/discount"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { FindParams } from "../../../../types/common"
* content:
* application/json:
* schema:
* type: object
* required:
* - resources
* properties:
Expand Down Expand Up @@ -70,6 +71,7 @@ import { FindParams } from "../../../../types/common"
* content:
* application/json:
* schema:
* type: object
* properties:
* discount:
* $ref: "#/components/schemas/discount"
Expand Down
Loading

0 comments on commit ebe7391

Please sign in to comment.