When API returns mixed content - 200 returns File/Binary and 500 returns JSON which is typical for error handling.
Generated code will include two accept headers. Problem is that selectHeaderAccept function that builds headers always forces accept headers to be JSON. As result server responses crash as server only knows how to set zip content type.
HTTPHeaderAccepts := []string{"application/zip", "application/json"}
Bug Report Checklist
Description
When API returns mixed content - 200 returns File/Binary and 500 returns JSON which is typical for error handling.
Generated code will include two accept headers. Problem is that selectHeaderAccept function that builds headers always forces accept headers to be JSON. As result server responses crash as server only knows how to set zip content type.
https://github.com/redhat-developer/app-services-sdk-go/blob/main/registryinstance/apiv1internal/client/api_admin.go#L1004-L1007
openapi-generator version
5.2.1
OpenAPI declaration file content or URL
https://github.com/redhat-developer/app-services-sdk-go/blob/main/.openapi/registry-instance.json#L651-L665
Steps to reproduce
Related issues/PRs
#10337
Suggest a fix