APIv3-php-library icon indicating copy to clipboard operation
APIv3-php-library copied to clipboard

ResellerApi::getChildDomains is unusable (always return empty array)

Open johndodev opened this issue 2 years ago • 1 comments

Hi,

In addition to a php 8 compatibility error referenced in #147, the function will always return an empty and fresh new instance of class SendinBlue\Client\Model\GetChildDomains.

I checked the code, the guzzle response is ok, contains data.

  • The code go to ObjectSerializer::deserialize (Reseller API line 2441).
  • new instance of GetChildDomains is created on ObjectSerializer line 306.
  • The code make a foreach on $instance::swaggerTypes(), but GetChildDomains::swaggerTypes() will always return an empty array.

So the returned instance of GetChildDomains is never hydrated.

I understand you use a code generator, but it would be nice to fix your swagger def.

johndodev avatar Aug 12 '22 17:08 johndodev

Hi @johndodev We really appreciate your findings we will look into it.

preetishishodia7 avatar Jan 20 '23 09:01 preetishishodia7