mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-09 04:19:16 +00:00
Update form fields to remove duplicate enums for number and url' by github action: 4610439171
64 lines
1.8 KiB
YAML
64 lines
1.8 KiB
YAML
title: Workflow Operator
|
|
type: object
|
|
properties:
|
|
id:
|
|
type: string
|
|
description: Operator ID.
|
|
example: "sp:compare-boolean"
|
|
name:
|
|
type: string
|
|
description: Operator friendly name
|
|
example: Compare Boolean Values
|
|
type:
|
|
description: Operator type
|
|
type: string
|
|
example: "OPERATOR"
|
|
description:
|
|
type: string
|
|
description: Description of the operator
|
|
example: Compare two boolean values and decide what happens based on the result.
|
|
formFields:
|
|
type: array
|
|
description: One or more inputs that the operator accepts
|
|
items:
|
|
$ref: './WorkflowLibraryFormFields.yaml'
|
|
example:
|
|
[
|
|
{
|
|
"description": "Enter the JSONPath to a value from the input to compare to Variable B.",
|
|
"helpText": "",
|
|
"label": "Variable A",
|
|
"name": "variableA.$",
|
|
"required": true,
|
|
"type": "text"
|
|
},
|
|
{
|
|
"helpText": "Select an operation.",
|
|
"label": "Operation",
|
|
"name": "operator",
|
|
"options": [
|
|
{
|
|
"label": "Equals",
|
|
"value": "BooleanEquals"
|
|
}
|
|
],
|
|
"required": true,
|
|
"type": "select"
|
|
},
|
|
{
|
|
"description": "Enter the JSONPath to a value from the input to compare to Variable A.",
|
|
"helpText": "",
|
|
"label": "Variable B",
|
|
"name": "variableB.$",
|
|
"required": false,
|
|
"type": "text"
|
|
},
|
|
{
|
|
"description": "Enter True or False.",
|
|
"helpText": "",
|
|
"label": "Variable B",
|
|
"name": "variableB",
|
|
"required": false,
|
|
"type": "text"
|
|
}
|
|
] |