You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Duplicate accept headers like [Headers("Accept: application/json, application/json")] are generated when an endpoint has multiple responses with a payload. In this case, an endpoint can respond with HTTP 200 or 203 and both responses include a application/json payload in the response body
publicinterfaceITestAPI{/// <summary>/// Get the details of the specified job./// </summary>[Headers("Accept: application/json, application/json")][Get("/jobs/{job-id}")]Task<JobResponse>Jobs([AliasAs("job-id")]stringjob_id);}
The text was updated successfully, but these errors were encountered:
Description
Duplicate accept headers like
[Headers("Accept: application/json, application/json")]
are generated when an endpoint has multiple responses with a payload. In this case, an endpoint can respond with HTTP 200 or 203 and both responses include aapplication/json
payload in the response bodySupport Key:
ptbddgt
OpenAPI Specifications
Generated code:
The text was updated successfully, but these errors were encountered: