Skip to content

[API Compat] Adding a new value to a public enum is not detected as a breaking change #45929

Open
@bitbonk

Description

@bitbonk

Is your feature request related to a problem? Please describe.

When adding a new value to an existing public enum, these changes are not detected as a source breaking changes by the baseline package validator. Such changes are not source compatible because consuming code would need to be adjusted to account for the new value, for example in a switch statement.

Describe the solution you'd like

Introduce a new validation check that fails when a new value to an existing public enum was added.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions