Generated code using an enum of ints does not compile #3881
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
DPG/RLC v2.1
Post Gallium work
DPG
v3
Version 3 of AutoRest C# generator.
In Event Grid V2, an enum of ints is defined here - https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp#L129-L144
This gets generated as a struct with a few well known values.
The convenience method that is generated using the generated
ReleaseDelay
model. The method calls into the protocol method which defines the delay as an int, but it doesn't use the generatedToSerialInt32
method so the code fails to compile.The text was updated successfully, but these errors were encountered: