Azure / autorest

OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python
MIT License
4.6k stars 733 forks source link

@encodedName don't support "json" as mime type #4953

Closed pshao25 closed 5 months ago

pshao25 commented 5 months ago

packages\extensions\openapi-to-typespec\test\arm-sphere is an example, it generates

@@encodedName(Catalogs.listDeviceGroups::parameters.body,
  "json",
  "listDeviceGroupsRequest"
);

which is expected to be

@@encodedName(Catalogs.listDeviceGroups::parameters.body,
  "application/json",
  "listDeviceGroupsRequest"
);