[WB] Invalid wb scheme
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Merlin |
Fix Committed
|
High
|
Timur Sufiev |
Bug Description
Current wb scheme generated by form is invalid, because name of some parameters or type is incorrect.
Here are example:
actions:
action1:
name: Action 1
base: std.echo
baseInput:
"?": ""
input:
- name
output:
- type: string
value: "Hello, <% $.name %>"
1) name: Action 1 - is redundant parameter, action name should be presented only once
2) baseInput:
"?": ""
Actual name of this parameter is "base-input" and should be possibility to change key name (now it is "?")
3) in output section it is not needed not write - type: string
Here can be found example of wb with usage of most of parameters: https:/
Also below I will provide actual scheme for Mistral entities:
action:
_schema = {
"type": "object",
"name": {"type": "string"},
"tags": {"type": "array"},
"base": {"type": "string"},
},
"required": ["version", "name", "base"],
workflow:
_schema = {
"type": "object",
"name": {"type": "string"},
"tags": {"type": "array"},
"type": {"enum": ["reverse", "direct"]},
},
"required": ["version", "name", "tasks"],
workbook:
_schema = {
"type": "object",
"name": {"type": "string"},
"tags": {"type": "array"},
},
"required": ["name"],
All other specs for appropriate items can be found here: https:/
summary: |
- [Workbook builder] Invalid wb scheme + [WB] Invalid wb scheme |
Yes, probably there camelCase is used but in Mistral - dash-case.
Also all generated YAML can be validated if you have mistral-server and python- mistralclient installed.
Simple wb-create command:
mistral workbook-create <path-to-yaml.yaml>