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
  • #2321
Closed
Open
Issue created Mar 07, 2019 by Administrator@rootContributor

Go client does not support vendor specific mime types

Created by: jimmidyson

Description

When using vendor specific mime types, e.g. application/vnd.my.custom.mime.type+json, the generated client does not correctly handling marshalling, even when the suffix specifies the underlying mime type to use (e.g. in this case json).

openapi-generator version

4.0.0-beta2

OpenAPI declaration file content or url
Command line used for generation

Language is go.

Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement

Submitting a PR that fixes up the regexp in the client template used to check for JSON encoding.

Assignee
Assign to
Time tracking