docs-util: fix incorrect workflow extracted in OAS (#11120)
This commit is contained in:
@@ -27276,7 +27276,6 @@ paths:
|
||||
$ref: '#/components/responses/invalid_request_error'
|
||||
'500':
|
||||
$ref: '#/components/responses/500_error'
|
||||
x-workflow: importProductsWorkflowId
|
||||
/admin/products/{id}:
|
||||
get:
|
||||
operationId: GetProductsId
|
||||
|
||||
@@ -37,4 +37,3 @@ post:
|
||||
$ref: ../components/responses/invalid_request_error.yaml
|
||||
'500':
|
||||
$ref: ../components/responses/500_error.yaml
|
||||
x-workflow: importProductsWorkflowId
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
* $ref: "#/components/responses/invalid_request_error"
|
||||
* "500":
|
||||
* $ref: "#/components/responses/500_error"
|
||||
* x-workflow: importProductsWorkflowId
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@@ -2398,7 +2398,11 @@ class OasKindGenerator extends FunctionKindGenerator {
|
||||
|
||||
const workflowName = childImport.name.getText()
|
||||
|
||||
if (fnText.includes(workflowName)) {
|
||||
if (
|
||||
fnText.includes(`${workflowName}(`) ||
|
||||
fnText.includes(`${workflowName} (`) ||
|
||||
fnText.includes(`${workflowName}.`)
|
||||
) {
|
||||
workflow = workflowName
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user