Skip to content

Check Custom Code When Preserve enum member underscores for backcompat #11314

Description

@jorgerangel-msft

887da67 introduced back compat support for underscore enum members. However, it seems to not fully an extensible enum's custom code implementation.

In example, this enum has a custom implementation. The newly generated type removes the members that were used in custom code.

When attempting to restore the enum members with underscores, we should check the CanonicalView to validate they do not already exist in custom code.

Metadata

Metadata

Labels

bugSomething isn't workingemitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharp

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions