Describe the bug
Earlier, the ProviderHub package generated ProvisioningState as a struct with a field for every value defined in the spec:
[JsonConverter(typeof(EnumJsonConverter<ProvisioningState>))]
public readonly partial struct ProvisioningState
{
public static readonly ProvisioningState Succeeded = "Succeeded", Failed = "Failed", Canceled = "Canceled", Accepted = "Accepted", Creating = "Creating", Updating = "Updating", Deleting = "Deleting";
}
Now, the http-server-csharp package generate it as an System.Object:
public partial class ThrottlingAccountProperties
{
[JsonPropertyName("provisioningState")]
public object ProvisioningState { get; set; }
}
public partial class ThrottlingAccount : TrackedResource
{
[JsonPropertyName("properties")]
public ThrottlingAccountProperties Properties { get; set; }
}
Reproduction
Any ARM/RPaaS RP's spec
Checklist
Describe the bug
Earlier, the ProviderHub package generated
ProvisioningStateas a struct with a field for every value defined in the spec:Now, the
http-server-csharppackage generate it as anSystem.Object:Reproduction
Any ARM/RPaaS RP's spec
Checklist