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
Upgrading code generator from 3.3.4 to 4.1.2 doesn't allow for any as a type.
This functionality seems to be broken since this PR: #2453
While I understand the need for this change, it is an inconsistency in some environments, take for example a server in Spring, where Object can be anything but a primitive, and a client in TypeScript where object can only be { }, and not a string of number.
Description
Upgrading code generator from 3.3.4 to 4.1.2 doesn't allow for any as a type.
This functionality seems to be broken since this PR: #2453
While I understand the need for this change, it is an inconsistency in some environments, take for example a server in Spring, where Object can be anything but a primitive, and a client in TypeScript where object can only be { }, and not a string of number.
OpenAPI declaration file content or url
Command line used for generation
npx openapi-generator generate -i spec.yml -g typescript-angular -o output
Steps to reproduce
Generate the code, and observe how value is of type object and not any.
I was using this in order to be able to pass any value to this field.
Related issues/PRs
#2453
Suggest a fix
What I suggest is to offer an option to generate a property of type any, maybe using a config option allowAny = true or something similar.
The text was updated successfully, but these errors were encountered: