System information (please complete the following information):
- OS: Windows
- Python Version: 3.12
- SDK Version: 8.18
Describe the bug
Setting value to None in SimulationInputOverride when running a simulation leads to an unexpected error. Instead of the API error correctly being raised, an unclear error is raised:
Fundamentally, it seems if a Cognite data class method _load does more data validation than __init__, this problem might occur.
To Reproduce
Runnable code reproducing the error.
client.simulators.runs.create(SimulationRunWrite(..., inputs=[SimulationInputOverride("ref_id", None)]))
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
System information (please complete the following information):
Describe the bug
Setting
valuetoNoneinSimulationInputOverridewhen running a simulation leads to an unexpected error. Instead of the API error correctly being raised, an unclear error is raised:Fundamentally, it seems if a Cognite data class method
_loaddoes more data validation than__init__, this problem might occur.To Reproduce
Runnable code reproducing the error.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.