Skip to content

Commit

Permalink
fix security schema
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser committed Dec 26, 2024
1 parent 773aa64 commit 9b8340c
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 25 deletions.
5 changes: 2 additions & 3 deletions www/apps/api-reference/specs/admin/openapi.full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69757,10 +69757,9 @@ components:
type: unknown_error
securitySchemes:
api_token:
type: apiKey
type: http
x-displayName: API Token
in: header
name: x-medusa-access-token
scheme: bearer
jwt_token:
type: http
x-displayName: JWT Token
Expand Down
5 changes: 2 additions & 3 deletions www/apps/api-reference/specs/admin/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1028,10 +1028,9 @@ paths:
components:
securitySchemes:
api_token:
type: apiKey
type: http
x-displayName: API Token
in: header
name: x-medusa-access-token
scheme: bearer
jwt_token:
type: http
x-displayName: JWT Token
Expand Down
24 changes: 16 additions & 8 deletions www/apps/api-reference/specs/store/openapi.full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5031,14 +5031,6 @@ paths:
type: string
title: category_id
description: A product category's ID.
- name: currency_code
in: query
description: The currency code to retrieve prices in.
required: false
schema:
type: string
title: currency_code
description: The currency code to retrieve prices in.
- name: variants
in: query
description: Filter the products' variants.
Expand All @@ -5063,6 +5055,22 @@ paths:
type: string
title: value
description: Filter by a value of the option.
- name: country_code
in: query
description: The product's country code.
required: false
schema:
type: string
title: country_code
description: The product's country code.
- name: cart_id
in: query
description: The product's cart id.
required: false
schema:
type: string
title: cart_id
description: The product's cart id.
x-codeSamples:
- lang: Shell
label: cURL
Expand Down
24 changes: 16 additions & 8 deletions www/apps/api-reference/specs/store/paths/store_products.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -789,14 +789,6 @@ get:
type: string
title: category_id
description: A product category's ID.
- name: currency_code
in: query
description: The currency code to retrieve prices in.
required: false
schema:
type: string
title: currency_code
description: The currency code to retrieve prices in.
- name: variants
in: query
description: Filter the products' variants.
Expand All @@ -821,6 +813,22 @@ get:
type: string
title: value
description: Filter by a value of the option.
- name: country_code
in: query
description: The product's country code.
required: false
schema:
type: string
title: country_code
description: The product's country code.
- name: cart_id
in: query
description: The product's cart id.
required: false
schema:
type: string
title: cart_id
description: The product's cart id.
x-codeSamples:
- lang: Shell
label: cURL
Expand Down
5 changes: 2 additions & 3 deletions www/utils/generated/oas-output/base/admin.oas.base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -735,10 +735,9 @@ components:
type: unknown_error
securitySchemes:
api_token:
type: apiKey
type: http
x-displayName: API Token
in: header
name: x-medusa-access-token
scheme: bearer
jwt_token:
type: http
x-displayName: JWT Token
Expand Down

0 comments on commit 9b8340c

Please sign in to comment.