ErikWittern / openapi-snippet

Generates code snippets for given Swagger / Open API documents
MIT License
116 stars 67 forks source link

httpclient code snippet generator not generating content type #53

Open spparida opened 3 years ago

spparida commented 3 years ago

Hello Team,

We are using openAPI-snippet significantly, we observed HttpClient(C#) is supported by the library recently. After implementation we observed that it's not generating Content-Type for HttpClient (C#), but it's coming for all other languages supported. Pls check below screenshot for your reference. Can you pls respond on this, is it something a known issue , will be taking care in coming days? Pls let me know. Thanks you in advance!

image

image

ErikWittern commented 3 years ago

@spparida As it seems that issue appears only in C#, but not when choosing other target languages, this must be an issue with https://github.com/Kong/httpsnippet, which OpenAPI-Snippet depends upon for generating the actual snippets (from HAR objects).

I suggest opening an issue with httpsnippet.

spparida commented 3 years ago

Yes Sure thanks @ErikWittern