Closed demeringo closed 8 months ago
The structure of json impacts returned slightly differs depending if we request a verbose or non-verbose format.
In non verbose , imapcts are returned at the root level
{ "gwp": { "embedded": { "value": 0.0015724, "significant_figures": 5, "min": 0.00090127, .... }
In verbose impacts are returned under an ìmpact` top level object
{ "impacts": { "gwp": { ..... }, .... }, "verbose": { "duration": { "value": 35040, "unit": "hours" }, "ASSEMBLY-1": { .... },
Always return impacts under an ìmpacts`object
@da-ekchajzer please ping me if you include this to dev branch (I may have to do small updates on cloud scanner to remain compatible).
Ping. Fixed with latest commit.
Problem
The structure of json impacts returned slightly differs depending if we request a verbose or non-verbose format.
In non verbose , imapcts are returned at the root level
In verbose impacts are returned under an ìmpact` top level object
Solution
Always return impacts under an ìmpacts`object
Alternatives
Additional context or elements