feature request: Make "Permissions" API objects consistent
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- openapi, typescript
- 领域
- api
调研方向
首先,以链接的操作为切入点,比较 API 规范中 Set Role Permission 和 Create Role 的 Permissions 对象。确定哪些字段名称应作为规范名称,然后追踪 TypeScript 类型定义和 OpenAPI 生成的输出如何表示这两个 schema。完成的标准是 API 模型使用一种一致的表示形式,且不需要冗余的反序列化处理。
由索引模型根据 Issue 内容生成。
描述
What do you want to see?
There are multiple places in the API spec where an object representing a role's permissions (allowed and denied) is expressed, but I've noticed an inconsistency: Sometimes the fields are allow and deny (example: Set Role Permission), and sometimes they are a and d (example: Create Role). Could this be fixed up and unified in one way or another? It would make some API wrappers' lives easier not needing to include special JSON deserialization logic to handle the same model with differing field names, or having to include redundant model code. 😄
- 主要语言
- TypeScript
- 星标
- 42
- 派生
- 34
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
stoatchat/javascript-client-api 的其他 Issue
-
bug
难度 4/5 3-5 天 新手友好度 35/100
stoatchat/javascript-client-api#34 · 1 条评论 ·
-
feature request: Make GET channels/{target}/messages use request body instead of query parameters 未关闭enhancement
难度 5/5 一周以上 新手友好度 35/100
stoatchat/javascript-client-api#28 · 1 条评论 ·
-
enhancement
难度 5/5 一周以上 新手友好度 30/100
-
难度 3/5 1-2 天 新手友好度 35/100
stoatchat/javascript-client-api#18 · 2 条评论 · 4 个 reaction ·
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
stoatchat/javascript-client-api#16 · 2 条评论 · 8 个 reaction ·
查看 stoatchat/javascript-client-api 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
mksglu/context-mode#1200 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
难度 2/5 1-3 小时 新手友好度 75/100
anthropics/claude-code#96687 ·
-
good first issue
难度 1/5 1 小时以内 新手友好度 95/100
AOSSIE-Org/DebateAI#582 · 2 条评论 ·