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
The generated client has an optional mixed type. Mixed already contains null values. PHP Fatal error: Type mixed cannot be marked as nullable since mixed already includes null
It has been found that this is only the case if the endpoint does not accept valid JSON. In this case, simply “string”. Nevertheless, the generator should be able to generate error-free php code.
JulianVennen
added a commit
to JulianVennen/openapi-generator
that referenced
this issue
Dec 20, 2024
Bug Report Checklist
Description
The generated client has an optional mixed type. Mixed already contains null values.
PHP Fatal error: Type mixed cannot be marked as nullable since mixed already includes null
openapi-generator version
7.10.0
OpenAPI declaration
Generation Details
Steps to reproduce
Create the PHP API client with optional POST body
Related issues/PRs
Suggest a fix
Remove the ? if the type is mixed.
The text was updated successfully, but these errors were encountered: