Open advance512 opened 5 years ago
This might be related: https://github.com/swagger-api/swagger-codegen/issues/7994
I think this was solved in swagger-codegen. Have a look at the fix in: https://github.com/swagger-api/swagger-codegen/pull/7991
@jfiala could you have a look at this?
Description
Generated type file
ID
contains the following:data
is an integer input.obj
is null. Hence, the result isexports()
instead of simplydata
.openapi-generator version
openapi-generator-cli-3.3.3-20181113.090410-41.jar
OpenAPI declaration file content or url
Command line used for generation
java -jar openapi-generator-cli-3.3.3-20181113.090410-41.jar generate -i ../source.yaml -l javascript --additional-properties usePromises=true -o ./javascript/
Steps to reproduce
Use the above definitions in any operation. You'll get a result object with an exports() objects instead of an ID integer.
Related issues/PRs
This is the same issue in swagger-codegen: https://github.com/swagger-api/swagger-codegen/issues/4973
Suggest a fix/enhancement
It tempts me to say:
but I actually think the issue is that the generator doesn't follow the $ref properly. Not certain