autorest.typescript icon indicating copy to clipboard operation
autorest.typescript copied to clipboard

Can't generate samples

Open kazrael2119 opened this issue 3 years ago • 3 comments

When I generated samples in customerinsights , it occured an error message like this: image This error may have happened here:https://github.com/Azure/azure-rest-api-specs/blob/e4400c42d2adf0545578414a1b07d2bdca61bfe8/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-04-26/examples/ViewsCreateOrUpdate.json

And the same message in appinsights: image This error may have happened here:https://github.com/Azure/azure-rest-api-specs/blob/2dcad6d6e9a96882eb6d317e7500a94be007a9c6/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/FavoriteAdd.json

Except these two error, when I generate samples in apimanagement ,it occured an error message like this: image Then I discovered that Swagger's parameters have unrecognizable characters,so I deleted them and generated this SDK successfully. Here is the swagger change:https://github.com/Azure/azure-rest-api-specs/pull/20086 I think CodeGen probably didn't handle this particular character well So can we add this character to the filter too?

kazrael2119 avatar Aug 04 '22 05:08 kazrael2119

https://github.com/Azure/autorest.typescript/issues/1529

kazrael2119 avatar Aug 31 '22 07:08 kazrael2119

image

The same error in sqlvirtualmachine

kazrael2119 avatar Sep 21 '22 09:09 kazrael2119

image in logic , it occured an error when generating samples

kazrael2119 avatar Oct 14 '22 05:10 kazrael2119