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
would work for request body (however it still not desirable in codegen, as the generic type could be e.g. List<Map<List<Map<...>>>).
But the response body is hard to work with this pattern.
Kind of similar to Azure/azure-sdk-for-java#37793 (just Jackson vs azure-json, but both having similar problem of type erasure in generic type)
translate has payload being an array
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/translation/Azure.AI.TextTranslation/routes.tsp#L61-L67
(request body and response body is both JSON array)
SDK generates
Serialization within
BinaryDatawould go with Jackson (I assume due to type erasure). It should go with azure-jsonModify the code to
would work for request body (however it still not desirable in codegen, as the generic type could be e.g.
List<Map<List<Map<...>>>).But the response body is hard to work with this pattern.
Kind of similar to Azure/azure-sdk-for-java#37793 (just Jackson vs azure-json, but both having similar problem of type erasure in generic type)