Skip to content

Add x-ms-enum.modelAsString=false to single value enums in Azure.Storage.Files.Shares #24629

Closed as not planned

Description

seal-single-value-enum-by-default in autorest.md is a temporary flag. When it stops working, enums with single value will no longer be treated as constants. To avoid this, add x-ms-enum.modelAsString=false to all enums that should remain constants, e.g.: e.g.:
https://github.com/Azure/autorest.csharp/blob/25d9b624ae1e6c5faf65fbb8176e718f85c6b4c8/test/TestProjects/BodyAndPath-LowLevel/BodyAndPath-LowLevel.json#L106 (in this example, however, parameter is still created cause EnumName2 has 2 values).

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

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions