Closed rob-buskens-sp closed 3 months ago
The yaml for WorkFlowExecutionEvent has errors in it. The code above runs if the following changes are made and the python sdk is rebuilt.
Hey @rob-buskens-sp, this is fixed in https://github.com/sailpoint-oss/python-sdk/commit/b9a258c430dedf7c1e7937e180393f8087b55eab and will be included in the next release.
Error on the sailpoint.v3.WorkflowsApi(v3_client).get_workflow_execution_history method.
Sample code
Results in:
Exception has occurred: ValidationError 1 validation error for WorkflowExecutionEvent type Input should be a valid dictionary [type=dict_type, input_value='WorkflowExecutionStarted', input_type=str] For further information visit https://errors.pydantic.dev/2.7/v/dict_type File "/Users/rob.buskens/Documents/Code/workflows/workflow.py", line 41, in
workflow_execution_history_events = sailpoint.v3.WorkflowsApi(v3_client).get_workflow_execution_history(id = workflow_execution.id)
pydantic_core._pydantic_core.ValidationError: 1 validation error for WorkflowExecutionEvent
type
Input should be a valid dictionary [type=dict_type, input_value='WorkflowExecutionStarted', input_type=str]
For further information visit https://errors.pydantic.dev/2.7/v/dict_type