docs-util: fix workflows not picked for some routes + generate OAS (#13342)

* generated oas

* fixes and improvements
This commit is contained in:
Shahed Nasser
2025-08-29 12:51:55 +03:00
committed by GitHub
parent 899ac2f052
commit 7b1028e5ae
23 changed files with 308 additions and 1047 deletions

View File

@@ -18390,7 +18390,6 @@ paths:
summary: List Feature Flags
description: Retrieve a list of feature flags. The feature flags can be filtered by fields such as `id`. The feature flags can also be sorted or paginated.
x-authenticated: false
parameters: []
x-codeSamples:
- lang: Shell
label: cURL
@@ -45073,7 +45072,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/AdminUpdateShippingOption'
$ref: '#/components/schemas/AdminUpdateShippingOptionType'
x-codeSamples:
- lang: JavaScript
label: JS SDK
@@ -45994,7 +45993,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/AdminUpdateShippingOption'
$ref: '#/components/schemas/AdminUpdateShippingOptionType'
x-codeSamples:
- lang: JavaScript
label: JS SDK
@@ -57812,7 +57811,6 @@ components:
x-schemaName: AdminCreateShippingOptionType
required:
- label
- description
- code
properties:
label:
@@ -69085,174 +69083,6 @@ components:
externalDocs:
url: https://docs.medusajs.com/api/admin#manage-metadata
description: Learn how to manage metadata
AdminUpdateShippingOption:
type: object
description: The properties to update in the shipping option.
properties:
name:
type: string
title: name
description: The shipping option's name.
data:
type: object
description: The shipping option's data that is useful for third-party providers.
externalDocs:
url: https://docs.medusajs.com/v2/resources/commerce-modules/fulfillment/shipping-option#data-property
price_type:
type: string
description: |
The type of the shipping option's price. If `calculated`, its price is retrieved by the associated fulfillment provider during checkout. If `flat`, its price is set in the `prices` property.
enum:
- calculated
- flat
provider_id:
type: string
title: provider_id
description: The ID of the associated fulfillment provider that is used to process the option.
shipping_profile_id:
type: string
title: shipping_profile_id
description: The ID of the shipping profile this shipping option belongs to.
type:
type: object
description: The shipping option's type.
required:
- code
- description
- label
properties:
label:
type: string
title: label
description: The type's label.
description:
type: string
title: description
description: The type's description.
code:
type: string
title: code
description: The type's code.
prices:
type: array
description: The shipping option's prices. If the `price_type` is `calculated`, pass an empty array.
items:
oneOf:
- type: object
description: The shipping option's price for a currency code.
properties:
id:
type: string
title: id
description: The ID of an existing price.
currency_code:
type: string
title: currency_code
description: The price's currency code.
amount:
type: number
title: amount
description: The price's amount.
- type: object
description: The shipping option's price for a region.
properties:
id:
type: string
title: id
description: The ID of an existing price.
region_id:
type: string
title: region_id
description: The ID of the associated region.
amount:
type: number
title: amount
description: The price's amount.
rules:
type: array
description: The shipping option's rules.
items:
oneOf:
- type: object
description: The details of a new shipping option rule.
required:
- operator
- attribute
- value
properties:
operator:
type: string
description: The operator used to check whether a rule applies.
enum:
- in
- eq
- ne
- gt
- gte
- lt
- lte
- nin
attribute:
type: string
title: attribute
description: The name of a property or table that the rule applies to.
example: customer_group
value:
oneOf:
- type: string
title: value
description: A value of the attribute that enables this rule.
example: cusgroup_123
- type: array
description: Values of the attribute that enable this rule.
items:
type: string
title: value
description: A value of the attribute that enables this rule.
example: cusgroup_123
- type: object
description: Update the properties of an existing rule.
required:
- id
- operator
- attribute
- value
properties:
id:
type: string
title: id
description: The rule's ID.
operator:
type: string
description: The operator used to check whether a rule applies.
enum:
- in
- eq
- ne
- gt
- gte
- lt
- lte
- nin
attribute:
type: string
title: attribute
description: The name of a property or table that the rule applies to.
example: customer_group
value:
oneOf:
- type: string
title: value
description: A value of the attribute that enables this rule.
example: cusgroup_123
- type: array
description: Values of the attribute that enable this rule.
items:
type: string
title: value
description: A value of the attribute that enables this rule.
example: cusgroup_123
x-schemaName: AdminUpdateShippingOption
AdminUpdateShippingOptionRule:
type: object
description: The properties to update in the shipping option rule.
@@ -69297,6 +69127,23 @@ components:
description: A value of the attribute that enables this rule.
example: cusgroup_123
x-schemaName: AdminUpdateShippingOptionRule
AdminUpdateShippingOptionType:
type: object
description: The properties to update in the shipping option type.
properties:
code:
type: string
title: code
description: The shipping option type's code.
description:
type: string
title: description
description: The shipping option type's description.
label:
type: string
title: label
description: The shipping option type's label.
x-schemaName: AdminUpdateShippingOptionType
AdminUpdateShippingProfile:
type: object
description: The properties to update in the shipping profile.