[Bug] v2 API: custom field options are an object on read but must be a JSON string on write
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- go, json
调研方向
Start with the api/openapi-v2.json schema for options on custom fields, then find the v2 handlers for GET /custom-fields and POST/PATCH /custom-fields/{id} to compare how each side encodes and decodes it. Agree with maintainers whether the parsed object or the JSON string is canonical before editing, since the issue leaves that open. Done when a read can be written back unchanged and the OpenAPI document matches the actual behaviour.
由索引模型根据 Issue 内容生成。
描述
Version: main (b1a9898)
GET /rest/api/v2/custom-fields returns each field's options already parsed ({"next_id": N, "items": [{"id", "label"}]}), while POST /custom-fields and PATCH /custom-fields/{id} declare options as a string in api/openapi-v2.json and accept the same structure JSON-encoded. A client that reads a multiselect field, adds an option and writes it back has to re-encode in between; one that assumes the documented string on read crashes.
Expected: the same representation both ways, ideally the parsed object, with the OpenAPI document updated to match.
Minor, but it cost a failed sync run on our side, so noting it.
- 主要语言
- Go
- 星标
- 421
- 派生
- 50
- 平均合并
- 17 小时 34 分钟
- 30 天内合并 PR
- 80
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Windshiftapp/core 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
Windshiftapp/core#542 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
Windshiftapp/core#334 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
Windshiftapp/core#259 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
[Bug][AI chat] Select menu dont appear when on index page可能已有人在做 @valentimarco 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 20/100
Windshiftapp/core#541 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 45/100
Windshiftapp/core#538 · 1 个 reaction ·
维护者通常 1 天内回复
查看 Windshiftapp/core 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
karmada-io/karmada#8101 ·
维护者通常 1 天内回复
-
product:platform
难度 2/5 1-3 小时 新手友好度 77/100
Infisical/infisical#9746 · 1 条评论 ·
维护者通常 1 天内回复
-
CrossEntropyFilter raises on zero probabilities and single-class results可能已有人在做 @NopeCharon 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
txn2/mcp-data-platform#2728 ·
维护者通常 1 天内回复
-
effort:s impact:low raised-by:worker risk:low
难度 2/5 1-3 小时 新手友好度 70/100
medici-finance/assay#7259 · 1 条评论 ·
维护者通常 1 天内回复