From 570c85538badda7f396a5607e5a2bd28f0655700 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Tue, 17 Dec 2024 19:45:57 +0200 Subject: [PATCH] chore: fix redocly circular dependencies (#10642) --- packages/cli/oas/medusa-oas-cli/redocly/redocly-config.yaml | 4 ++-- .../admin/components/schemas/AdminApplicationMethod.yaml | 2 +- .../specs/admin/components/schemas/AdminPromotion.yaml | 2 +- www/apps/api-reference/specs/admin/openapi.full.yaml | 4 ++-- .../store/components/schemas/AdminApplicationMethod.yaml | 2 +- .../specs/store/components/schemas/AdminPromotion.yaml | 2 +- www/apps/api-reference/specs/store/openapi.full.yaml | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/cli/oas/medusa-oas-cli/redocly/redocly-config.yaml b/packages/cli/oas/medusa-oas-cli/redocly/redocly-config.yaml index 9c04723cfbec6..9a8af4001ee54 100644 --- a/packages/cli/oas/medusa-oas-cli/redocly/redocly-config.yaml +++ b/packages/cli/oas/medusa-oas-cli/redocly/redocly-config.yaml @@ -115,8 +115,8 @@ decorators: AdminProductOption: - AdminProduct - AdminProductOptionValue - AdminPromotion: - - AdminApplicationMethod + AdminApplicationMethod: + - AdminPromotion BaseOrderItemDetail: - BaseOrderLineItem BaseOrderShippingDetail: diff --git a/www/apps/api-reference/specs/admin/components/schemas/AdminApplicationMethod.yaml b/www/apps/api-reference/specs/admin/components/schemas/AdminApplicationMethod.yaml index 14f4f8992f5a8..5bbf8a6881e06 100644 --- a/www/apps/api-reference/specs/admin/components/schemas/AdminApplicationMethod.yaml +++ b/www/apps/api-reference/specs/admin/components/schemas/AdminApplicationMethod.yaml @@ -5,7 +5,7 @@ required: - id properties: promotion: - $ref: ./AdminPromotion.yaml + type: object target_rules: type: array description: The application method's target rules. diff --git a/www/apps/api-reference/specs/admin/components/schemas/AdminPromotion.yaml b/www/apps/api-reference/specs/admin/components/schemas/AdminPromotion.yaml index 2238559e4f2a1..3ed5449dbbecd 100644 --- a/www/apps/api-reference/specs/admin/components/schemas/AdminPromotion.yaml +++ b/www/apps/api-reference/specs/admin/components/schemas/AdminPromotion.yaml @@ -8,7 +8,7 @@ required: - deleted_at properties: application_method: - type: object + $ref: ./AdminApplicationMethod.yaml rules: type: array description: The promotion's rules. diff --git a/www/apps/api-reference/specs/admin/openapi.full.yaml b/www/apps/api-reference/specs/admin/openapi.full.yaml index 0b49b9a5d458b..a57b3f98180a8 100644 --- a/www/apps/api-reference/specs/admin/openapi.full.yaml +++ b/www/apps/api-reference/specs/admin/openapi.full.yaml @@ -43653,7 +43653,7 @@ components: - id properties: promotion: - $ref: '#/components/schemas/AdminPromotion' + type: object target_rules: type: array description: The application method's target rules. @@ -51946,7 +51946,7 @@ components: - deleted_at properties: application_method: - type: object + $ref: '#/components/schemas/AdminApplicationMethod' rules: type: array description: The promotion's rules. diff --git a/www/apps/api-reference/specs/store/components/schemas/AdminApplicationMethod.yaml b/www/apps/api-reference/specs/store/components/schemas/AdminApplicationMethod.yaml index 14f4f8992f5a8..5bbf8a6881e06 100644 --- a/www/apps/api-reference/specs/store/components/schemas/AdminApplicationMethod.yaml +++ b/www/apps/api-reference/specs/store/components/schemas/AdminApplicationMethod.yaml @@ -5,7 +5,7 @@ required: - id properties: promotion: - $ref: ./AdminPromotion.yaml + type: object target_rules: type: array description: The application method's target rules. diff --git a/www/apps/api-reference/specs/store/components/schemas/AdminPromotion.yaml b/www/apps/api-reference/specs/store/components/schemas/AdminPromotion.yaml index 2238559e4f2a1..3ed5449dbbecd 100644 --- a/www/apps/api-reference/specs/store/components/schemas/AdminPromotion.yaml +++ b/www/apps/api-reference/specs/store/components/schemas/AdminPromotion.yaml @@ -8,7 +8,7 @@ required: - deleted_at properties: application_method: - type: object + $ref: ./AdminApplicationMethod.yaml rules: type: array description: The promotion's rules. diff --git a/www/apps/api-reference/specs/store/openapi.full.yaml b/www/apps/api-reference/specs/store/openapi.full.yaml index 53c416e791342..00585c2bf7431 100644 --- a/www/apps/api-reference/specs/store/openapi.full.yaml +++ b/www/apps/api-reference/specs/store/openapi.full.yaml @@ -5927,7 +5927,7 @@ components: - id properties: promotion: - $ref: '#/components/schemas/AdminPromotion' + type: object target_rules: type: array description: The application method's target rules. @@ -14220,7 +14220,7 @@ components: - deleted_at properties: application_method: - type: object + $ref: '#/components/schemas/AdminApplicationMethod' rules: type: array description: The promotion's rules.