Open brian-hamill-bv opened 1 year ago
I believe this is related to the version 3.2 of mashumaro that fixed no error when passing None values to fields that shouldn't be None.
if None
value is ok for totalDependencies
then this field should be annotated as Optional[int]
to fix this issue.
I am running into this issue a well, i think TotalDependencies needs to be annotated as mentioned above!
We're also experiencing this issue.
Same issue here. I seem to be seeing this error pop up when pysnyk runs into an IaC project while using client.organizations.get(org_id).projects.get(p.id).issueset_aggregated.all()
I believe I corrected this in #169. If so, please mark this as closed/resolved.
@ig596 I just tried with version 0.9.18 and still get the same error using the simple test at the top of the issue
Is there an existing issue for this?
Description of the bug
When using the Snyk client to get an individual org, then get all projects for that org an error is returned. This error seems to be because the SAST/Code Analysis projects return null/None for the
totalDependencies
value.Steps To Reproduce
Create a python script with the following code and run it against any org that includes projects of type SAST/Code Analysis.
Additional Information
The full error messages (with file paths and org IDs removed) is as follows: