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
from typing import List
import sailpoint.v3
import sailpoint.beta
import json
from sailpoint.configuration import Configuration
from pydantic import StrictStr
configuration: Configuration = None
results: List[sailpoint.v3.Workflow] = None
result: sailpoint.v3.Workflow = None
data: str = None
configuration = Configuration()
with sailpoint.v3.ApiClient(configuration) as api_client:
results = sailpoint.v3.WorkflowsApi(api_client).list_workflows()
result = results[0]
data = result.model_dump_json(by_alias=True, indent=4) #ERROR
print(data)
Output:
Unable to serialize unknown type: <class 'typing_extensions._LiteralGenericAlias'>
File "test_Workflows.py", line 18, in <module>
data = result.model_dump_json(by_alias=True, indent=4)
pydantic_core._pydantic_core.PydanticSerializationError:
Unable to serialize unknown type: <class 'typing_extensions._LiteralGenericAlias'>
The text was updated successfully, but these errors were encountered:
Run:
python3 test_Workflows.py
Code:
Output:
The text was updated successfully, but these errors were encountered: