You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When using ObjectSerializer methods, an exception occurs because parameters passed are enums instead of strings. This error arises in several methods, which require checking if parameters are enums and using their values directly.
openapi-generator version
7.9.0
OpenAPI declaration file content or URL
The issue can be observed in the api.mustache file at: OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-nextgen/api.mustache
Lines 714, 731, and other relevant sections have been modified to check if parameters are enums and to use their values, like this:
Bug Report Checklist
Description
When using
ObjectSerializer
methods, an exception occurs because parameters passed are enums instead of strings. This error arises in several methods, which require checking if parameters are enums and using their values directly.openapi-generator version
7.9.0
OpenAPI declaration file content or URL
The issue can be observed in the
api.mustache
file at:OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-nextgen/api.mustache
Lines 714, 731, and other relevant sections have been modified to check if parameters are enums and to use their values, like this:
Generation Details
Steps to reproduce
ObjectSerializer
methods.Related issues/PRs
Suggest a fix
Update relevant
ObjectSerializer
method calls to check ifparamName
is an enum, and if so, useparamName->value
.For instance:
The text was updated successfully, but these errors were encountered: