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
  • #13679
Closed
Open
Issue created Oct 12, 2022 by Administrator@rootContributor

[REQ] [Go] Improved error message when model implements RFC7807

Created by: gcatanese

Is your feature request related to a problem? Please describe.

When the API call returns an error (3xx, 4xx, 5xx) the generated Go client returns the GenericOpenAPIError with body, error and model of the returned errors. The error attribute includes the HTTP Status Code (ie 422).

Describe the solution you'd like

When the problem error JSON implements RFC7807 it would be much better to include Title and Detail so that the underlying cause of the error is immediately visible.

Describe alternatives you've considered

When logging the error only the status code is available. At the moment the client application needs to parse/decode the full HTTP response to have a better understanding of the cause of the error.

Assignee
Assign to
Time tracking