Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #13190
Closed
Open
Issue created Aug 15, 2022 by Administrator@rootContributor3 of 6 checklist items completed3/6 checklist items

[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

Assignee
Assign to
Time tracking