Unable to generate both a public client and model together #4706
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
v3
Version 3 of AutoRest C# generator.
Describe the issue or request
I'm attempting to generate a C# client and typed model for the Azure Maps Creator data plane, spec tag package-2023-03-preview. To obtain a model I have always used (and is suggested in a few issues here)
generation1-convenience-client: true
, and to obtain a public client that uses that model I also usepublic-clients: true
.It seems that with the latest autorest and autorest/csharp it is not possible to use both flags set to true. So I either get a model with no public client, or no model and a public client that has no knowledge of a model, i.e. all method return types are non-generic
Response
type.I've no idea when this change occurred as it's been over a year since I last attempted a generation.
Describe your ideas for solutions
Support creation of a typed public client with a typed model for the data plane please.
Info:
autorest: 3.7.1
autorest/csharp: 3.0.0-beta.20240511.1
The text was updated successfully, but these errors were encountered: