Unchase.OpenAPI.Connectedservice icon indicating copy to clipboard operation
Unchase.OpenAPI.Connectedservice copied to clipboard

Sends incorrect content

Open hallgrimura17 opened this issue 3 years ago • 1 comments

With no specification the request sends the body as FormUrlEncodedContent then adds the header value for application/json the call does not work since the content is wrong, changing to JsonContent.Create(dictionary_) fixes the issue, is this a problem on my end, I can't find information about this anywhere.

hallgrimura17 avatar Mar 07 '22 10:03 hallgrimura17

With no specification the request sends the body as FormUrlEncodedContent then adds the header value for application/json the call does not work since the content is wrong, changing to JsonContent.Create(dictionary_) fixes the issue, is this a problem on my end, I can't find information about this anywhere.

It looks like an inherited bug from NSwag, see https://github.com/RicoSuter/NSwag/issues/3414.

enione avatar Dec 16 '22 09:12 enione