Azure / Azure/openapi-diff

[Rule] breaking changes, when x-ms-discriminator-value changes

未关闭
#241 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Rule
主要语言
C#
星标
290
派生
50
平均合并
5 天 13 小时
30 天内合并 PR
5

描述

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).

贡献指南

打开贡献指南

调研方向

The issue names no file, test, or entry point. Start by locating how existing breaking-change rules are represented in this C# command-line tool, then trace comparison handling for x-ms-discriminator-value. Done means a changed value is reported as breaking while unchanged values are not.

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp
领域
api, cli
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。