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.17k stars 4.53k forks source link

[DocumentIntelligence] DPG: FetchAnalyzeResultFromAnalyzeResultOperation is generated twice #41669

Open kinelski opened 5 months ago

kinelski commented 5 months ago

Code generation is mistakenly creating two copies of the FetchAnalyzeResultFromAnalyzeResultOperation method in DocumentIntelligenceClient, breaking the build.

As a workaround, we're forcibly suppressing their creation with the CodeGenSuppress attribute and adding a manual copy: https://github.com/Azure/azure-sdk-for-net/blob/0260e01269caebd492527aaba2b3a3bde2d60b62/sdk/documentintelligence/Azure.AI.DocumentIntelligence/src/DocumentIntelligenceClient.cs#L9-L21

This seems to be a bug in the generator. Once fixed, we need to remove our workaround.

pallavit commented 5 months ago

@kinelski is this something we want to create in the autorest repo? /cc: @m-nash