Skip to content

[Bug]: http-server-csharp: ProvisioningState is object #12100

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions