Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.57k stars 4.82k forks source link

Swagger support in Azure Client Plugin to deprecate autorest.csharp #45739

Open live1206 opened 3 months ago

live1206 commented 3 months ago

Library name

N/A

Please describe the feature.

We still need to support swagger input during the migration to TypeSpec for brownfield services since the migration progress might be long.

The general idea is to produce tspCodeModel.json from autorest.csharp(might be somewhere else since it will be deprecated). Then consume the output tspCodeModel.json in Azure Client Plugin. So that, the main generation logic will be shared in Azure Client Plugin to avoid the maintenance of autorest.csharp generator.

live1206 commented 1 month ago

swagger ----M4----> CodeModel.yaml ----autorest.csharp----> tspCodeModel.json ----Azure Plugin----> SDK