Azure / autorest.python

Extension for AutoRest (https://github.com/Azure/autorest) that generates Python code
MIT License
79 stars 57 forks source link

Unexpected `\` in docstring #2678

Open msyyc opened 3 months ago

msyyc commented 3 months ago

For swagger description https://github.com/Azure/azure-rest-api-specs/blob/c142d613ea72dcc1251a5d4402147f13afc01f2a/specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/keyvault.json#L1233: image

Generated SDK contains unexpected \: image

msyyc commented 3 months ago

Similar issue for network: image

image

msyyc commented 3 months ago

After debug, I find the root cause is related with https://github.com/Azure/autorest.python/blob/ad59817944e3a2a678b2004706abb2d5819fbb46/packages/autorest.python/autorest/m2r/__init__.py#L54-L59.

msyyc commented 3 months ago

It is bug of package m2r2: https://github.com/CrossNox/m2r2/issues/70