[BUG] Generator javascript-apollo is outdated - generated code does not compile
Created by: joaomlneto
Bug Report Checklist
-
Have you provided a full/minimal spec to reproduce the issue? -
Have you validated the input using an OpenAPI validator (example)? -
Have you tested with the latest master to confirm the issue still exists? -
Have you searched for related issues/PRs? -
What's the actual output vs expected output? -
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
The template uses the version 0.7.0 of the apollo-data-source
package, which is quite old (3 years old).
The library has since changed considerably, and I believe users of this generator should enjoy the latest features.
The generated code is incompatible with the latest version (currently 3.6.1), hence this bug report.
Additionally, I was not able to compile the code using the old version of apollo-data-source
.
The generator as-is, seems to be badly broken and unusable (but do feel free to correct me!)
openapi-generator version
Version 6.0.1; not a regression
OpenAPI declaration file content or url
I'm using EVE Online's ESI for my purposes. Can try to come up with a minimal complete example if required/asked.
Generation Details
openapi-generator generate -g javascript-apollo -i https://esi.evetech.net/latest/swagger.json -o src/generated/esi-latest-custom-template
Steps to reproduce
The generated code does not compile.
Related issues/PRs
Didn't find any
Suggest a fix
Will open PR