Open basst85 opened 5 years ago
hmm, @kojoru sounds like a view definition error. Same as #76
@basst85 if you enable debugger you should be able to see/find out what its trying to deserialise and fix it by doing something like https://github.com/bunq/sdk_php/issues/76#issuecomment-379367982
@OGKevin @kojoru There is something "strange" with the returnvalue of $responseArray in the function fromJsonList() (in BunqModel): https://pastebin.com/ciGZ7k6L
The attachment object in the end of the file is strange.. ?
The response JSON: https://pastebin.com/RbfsYRNW
found it :)
"attachment": {
"id": 3647492,
"description": "",
"content_type": "image\/jpeg"
}
is an object but, this is how it's defined:
So please remove the []
from the doc and it should be good.
so @kojoru this can either be an view definition mistake or the actual response is wrong :)
found it :)
"attachment": { "id": 3647492, "description": "", "content_type": "image\/jpeg" }
is an object but, this is how it's defined:
sdk_php/src/Model/Generated/Endpoint/NoteAttachmentMasterCardAction.php
Lines 72 to 77 in f369d3b
/** * The attachment attached to the note. * * @var AttachmentMonetaryAccountPayment[] */ protected $attachment;
So please remove the
[]
from the doc and it should be good.
Yes! That works indeed. Thanks!
@kojoru Any update on this small bug?
Steps to reproduce:
I'm using this code:
But it's returning this error:
What should happen:
What happens:
Traceback
SDK version and environment
Response id
None