You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to publish a variable and i accidentally put in a dict instead of an array, the error message was confusing and not obvious what i needed to change the data type to.
ISSUE TYPE
Bug Report
STACKSTORM VERSION
$ st2 --version
st2 3.0dev (3ac37d0), on Python 2.7.5
I was able to quickly determine where in the workflow the error was (the publish statement). However, the error message '{''read'': ''{{ result() }}''} is not valid under any of the given schemas' did not provide what the valid schemas were. It would be nice if it told you what the expected schema was and what data type you provided. In this case i provided a dict instead of an array of one-key dicts.
ACTUAL RESULTS
$ st2 run default.basic_workflow
.
id: 5be2ea719387ef099b022feb
action.ref: default.basic_workflow
parameters: None
status: failed
start_timestamp: Wed, 07 Nov 2018 13:36:49 UTC
end_timestamp: Wed, 07 Nov 2018 13:36:49 UTC
result:
errors:
- message: '{''read'': ''{{ result() }}''} is not valid under any of the given schemas'
schema_path: properties.tasks.patternProperties.^\w+$.properties.next.items.properties.publish.oneOf
spec_path: tasks.get.next[0].publish
type: syntax
output: null
The text was updated successfully, but these errors were encountered:
SUMMARY
When trying to publish a variable and i accidentally put in a dict instead of an array, the error message was confusing and not obvious what i needed to change the data type to.
ISSUE TYPE
STACKSTORM VERSION
OS / ENVIRONMENT / INSTALL METHOD
STEPS TO REPRODUCE
Action
Workflow
EXPECTED RESULTS
I was able to quickly determine where in the workflow the error was (the publish statement). However, the error message
'{''read'': ''{{ result() }}''} is not valid under any of the given schemas'
did not provide what the valid schemas were. It would be nice if it told you what the expected schema was and what data type you provided. In this case i provided a dict instead of an array of one-key dicts.ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: