Closed madpah closed 1 year ago
Call is being made by the extension (successfully) to get Component Details, and a response is being returned by IQ Server, but the data is not being seen in the extension:
Making API Call ComponentsApi::getComponentDetails() DEBUG Array(1)0: Configuration {configuration: {…}}length: 1[[Prototype]]: Array(0)
Logger.ts:17 getComponentDetails response DEBUG [{…}]0: componentDetails: Array(0)length: 0[[Prototype]]: Array(0)[[Prototype]]: Objectlength: 1[[Prototype]]: Array(0)
Data doesn't seem to be coming back from the API Client (in @sonatype/nexus-iq-api-client
).
The response coming from IQ does not conform to the OpenAPI Spec - and thus response data is failing to deserialize to the Object Model.
0: "[Path '/componentDetails/0/hygieneRating'] Instance type (null) does not match any allowed primitive type (allowed: ["string"])"
1: "[Path '/componentDetails/0/relativePopularity'] Instance type (null) does not match any allowed primitive type (allowed: ["integer"])"
Fix required in @sonatype/nexus-iq-api-client
Confirmed as implemented/fixed in v2.x.x.
Also affects integrityRating
...
Fixed for Integrity Rating now too.
This breaks Hygiene and other meta data about the Component.
Also causing fix for #112 to be broken on v2.x.x branch.