[Rule] breaking changes, when x-ms-discriminator-value changes
Open
Rule
- Dominant language
- C#
- Stars
- 290
- Forks
- 50
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 5
Description
Case: https://github.com/Azure/azure-rest-api-specs/pull/20376#discussion_r959039927
Reason:
`x-ms-discriminator-value` is used in client to choose the correct type/class to initialize.
Changing its value will break SDK in runtime (there will be no API change, but SDK will fail to initialize the type in runtime), or client code (if customer uses REST API directly, and use its value to match the type).
Contributor guide
Assessment
This issue has not been assessed yet.