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
  • #10833
Closed
Open
Issue created Nov 10, 2021 by Administrator@rootContributor

[BUG] [javascript][ApiClient] Fix request "responseType"

Created by: edouardmercier

In the master branch, the JavaScript ApiClient uses the responseTypewith value string when the returnTypeparameter is set to String, which, on its turns attempts to the superagent XMLHttpRequest responseType with value string (which is not supported and generates a warning on the browser developer tools console with message "The provided value 'string' is not a valid enum value of type XMLHttpRequestResponseType.", see https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType) instead of text.

Could you please change line 522 of the file src/main/resources/Javascript/ApiClient.mustache with

request.responseType('text');

?

Assignee
Assign to
Time tracking