Azure / Azure/openapi-diff

[Rule] Allowed values for an enum have changed

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

描述

Enum “foo” had allowed values as “val1” and “val2” in v1 of API. If now, the values allowed/accepted by the service are “val1”, “val2” and “val3”, client will fail to de-serialize if “val3” comes back in the response.

贡献指南

打开贡献指南

调研方向

Start by reproducing the issue with two OpenAPI specifications where enum “foo” gains “val3”, then trace the command-line tool’s rule comparison for allowed enum values. Done means the change is reported when a newer specification accepts a value that the earlier one did not, covering the described deserialization risk.

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

评估

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

把新 issue 发到你的邮箱

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