st2flow icon indicating copy to clipboard operation
st2flow copied to clipboard

Error on remove last task

Open bigmstone opened this issue 6 years ago • 2 comments

If you delete the last task from a workflow it produces an error. This is likely linked to #203.

screenshot 2019-02-04 12 07 25

bigmstone avatar Feb 04 '19 18:02 bigmstone

st2flow-model/schemas/orquesta.json:171 defines minProperties: 1 for tasks. I don't know how this schema was created -- it looks like a generated file -- but I don't know of a business reason why there must be at least one task when validating.

bmomberger-bitovi avatar Feb 05 '19 01:02 bmomberger-bitovi

See https://github.com/StackStorm/st2flow/pull/220#issuecomment-461220144 and https://github.com/StackStorm/st2flow/pull/220#issuecomment-461869687

bigmstone avatar Feb 08 '19 16:02 bigmstone