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'
|
$ref: '#/components/responses/invalid_request_error'
|
||||||
'500':
|
'500':
|
||||||
$ref: '#/components/responses/500_error'
|
$ref: '#/components/responses/500_error'
|
||||||
x-workflow: importProductsWorkflowId
|
|
||||||
/admin/products/{id}:
|
/admin/products/{id}:
|
||||||
get:
|
get:
|
||||||
operationId: GetProductsId
|
operationId: GetProductsId
|
||||||
|
|||||||
-1
@@ -37,4 +37,3 @@ post:
|
|||||||
$ref: ../components/responses/invalid_request_error.yaml
|
$ref: ../components/responses/invalid_request_error.yaml
|
||||||
'500':
|
'500':
|
||||||
$ref: ../components/responses/500_error.yaml
|
$ref: ../components/responses/500_error.yaml
|
||||||
x-workflow: importProductsWorkflowId
|
|
||||||
|
|||||||
-1
@@ -36,7 +36,6 @@
|
|||||||
* $ref: "#/components/responses/invalid_request_error"
|
* $ref: "#/components/responses/invalid_request_error"
|
||||||
* "500":
|
* "500":
|
||||||
* $ref: "#/components/responses/500_error"
|
* $ref: "#/components/responses/500_error"
|
||||||
* x-workflow: importProductsWorkflowId
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -2398,7 +2398,11 @@ class OasKindGenerator extends FunctionKindGenerator {
|
|||||||
|
|
||||||
const workflowName = childImport.name.getText()
|
const workflowName = childImport.name.getText()
|
||||||
|
|
||||||
if (fnText.includes(workflowName)) {
|
if (
|
||||||
|
fnText.includes(`${workflowName}(`) ||
|
||||||
|
fnText.includes(`${workflowName} (`) ||
|
||||||
|
fnText.includes(`${workflowName}.`)
|
||||||
|
) {
|
||||||
workflow = workflowName
|
workflow = workflowName
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user