Skip to content

Commit

Permalink
refactor: fix eslint
Browse files Browse the repository at this point in the history
Signed-off-by: Junwei Dai <[email protected]>

Signed-off-by: Junwei Dai <[email protected]>
  • Loading branch information
Junwei Dai committed Sep 5, 2024
1 parent f84cb79 commit 4d7d28e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
14 changes: 14 additions & 0 deletions spec/namespaces/flow_framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,20 @@ paths:
$ref: '#/components/responses/flow_framework.get'
'404':
$ref: '../schemas/flow_framework._errors.yaml#/components/schemas/TemplateNotFoundError'
# /_plugins/_flow_framework/workflow/_steps:
# get: {}
# /_plugins/_flow_framework/workflow/_search:
# post: {}
# get: {}
# /_plugins/_flow_framework/workflow/state/_search:
# post: {}
# get: {}
# /_plugins/_flow_framework/workflow/{workflow_id}/_deprovision:
# post: {}
# /_plugins/_flow_framework/workflow/{workflow_id}/_provision:
# post: {}
# /_plugins/_flow_framework/workflow/{workflow_id}/_status:
# get: {}
components:
parameters:
flow_framework.get::path.workflow_id:
Expand Down
18 changes: 9 additions & 9 deletions spec/schemas/flow_framework._errors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ components:
properties:
message:
type: string
example: "This API is disabled. To enable it, set [flow_framework.enabled] to true."
example: This API is disabled. To enable it, set [flow_framework.enabled] to true.
status:
type: integer
BadRequestError:
Expand All @@ -23,7 +23,7 @@ components:
properties:
message:
type: string
xample: "Only the parameters [param1, param2] are permitted unless the provision parameter is set to true."
example: Only the parameters [param1, param2] are permitted unless the provision parameter is set to true.
status:
type: integer
ConflictError:
Expand All @@ -33,7 +33,7 @@ components:
properties:
message:
type: string
example: "You cannot use both the 'provision_workflow' and 'update_workflow_fields' parameters in the same request."
example: You cannot use both the 'provision_workflow' and 'update_workflow_fields' parameters in the same request.
status:
type: integer
MissingParameterError:
Expand All @@ -43,7 +43,7 @@ components:
properties:
message:
type: string
example: "You cannot use the 'reprovision_workflow' parameter to create a new template."
example: You cannot use the 'reprovision_workflow' parameter to create a new template.
status:
type: integer
ParameterConflictError:
Expand All @@ -53,7 +53,7 @@ components:
properties:
message:
type: string
example: "You cannot use the 'reprovision_workflow' and 'use_case' parameters in the same request."
example: You cannot use the 'reprovision_workflow' and 'use_case' parameters in the same request.
status:
type: integer
WorkFlowIdNullError:
Expand All @@ -63,7 +63,7 @@ components:
properties:
message:
type: string
example: "Workflow ID can not be null"
example: Workflow ID can not be null
status:
type: integer
WorkflowSaveError:
Expand All @@ -73,7 +73,7 @@ components:
properties:
message:
type: string
example: "Failed to save workflow state"
example: Failed to save workflow state
status:
type: integer
MaxWorkflowsLimitError:
Expand All @@ -83,7 +83,7 @@ components:
properties:
message:
type: string
example: "Maximum workflows limit reached: 50"
example: Maximum workflows limit reached 50
code:
type: integer
TemplateNotFoundError:
Expand All @@ -93,6 +93,6 @@ components:
properties:
message:
type: string
example: "Failed to retrieve template (12345) from global context."
example: Failed to retrieve template (12345) from global context.
code:
type: integer

0 comments on commit 4d7d28e

Please sign in to comment.