microsoft / microsoft/OpenAPI.NET.OData
The default for UseStringArrayForQueryOptionsSchema should be false
未关闭
还没有人认领这个 Issue。
priority:p1
type:bug
type:regression
- 主要语言
- C#
- 星标
- 240
- 派生
- 70
- 平均合并
- 7 小时 59 分钟
- 30 天内合并 PR
- 13
描述
Added in #499
Setting the default to true effectively changed every conversion from emitting array of enum values to arrays of strings silently.
This is a strong behaviour change, and the default should have been false.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
打开 src/Microsoft.OpenApi.OData.Reader/OpenApiConvertSettings.cs 第334行,检查 #499 引入的设置。按要求更改其默认值,然后验证转换行为不再从 enum arrays 静默变为 string arrays。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100