I am using a swagger generated php-api client for eve online's esi api. I used to generate the client with codegen-cli-2.3.1. I generated the new client with codegen-cli-2.4.1. That creates problems, because the client functions not longer return objects but arrays.
With 2.3.1 i would get something like this:
object(Swagger\Client\Model\GetCharactersCharacterIdContracts200Ok)#45 (1) {
["container":protected]=>
array(22) {
["assignee_id"]=>
int(92016026)
}
}
and to get the values I would do $result->getAssigneeId()
because that's what swagger would generate.
with 2.4.1 i get this:
array(19) {
["assignee_id"]=>
int(92016026)
}
where i can simply do $result["assignee_id"]
.
Now, minor versions are not supposed to break backwards compatibility, correct? Or is swagger as a concept not supposed to be updated? As in, when you you started with one codegen-cli version you simply stick with it to generate future api clients?
So do I only of the choice of staying with 2.3.1 or update to 2.4.1 and go through all my code to change the respective areas?