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
When constructing an object, the generated javascript client recursively calls constructFromObject on enum types. This method is not defined on enum types.
Description
When constructing an object, the generated javascript client recursively calls constructFromObject on enum types. This method is not defined on enum types.
Swagger-codegen version
Latest master (8c2267c)
Swagger declaration file content or url
Command line used for generation
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i swagger.yml -l javascript -o gen-js
Steps to reproduce
src/model/CreateFooRequest.js
and notice this logic for constructing the enum:If you open
src/model/Bar.js
, there is noconstructFromObject
method on that type.Related issues
Didn't find any.
Suggest a Fix
Still digging...
The text was updated successfully, but these errors were encountered: