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
- replace hard-coded value for `BodyMediaType`
- fix an bug in deducing media type from type, array should be `json`
part of microsoft#4208
work around microsoft#4225
@archerzz I believe this is related to the discussion from the sync yesterday regarding how content types should work for both request/response in MGC.
Clear and concise description of the problem
Right now, we hard code JSON as the response content type, which is wrong:
typespec/packages/http-client-csharp/emitter/src/lib/operation-converter.ts
Lines 254 to 256 in d9faa2a
See an issue reported in #4208 (comment)
We should have support for various kinds of content types. That is:
BodyMediaType
enum and corresponding reference, we should support a wide range of media typesChecklist
The text was updated successfully, but these errors were encountered: