Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

feature request: Make "Permissions" API objects consistent

未关闭
#29 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

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

调研方向

首先,以链接的操作为切入点,比较 API 规范中 Set Role Permission 和 Create Role 的 Permissions 对象。确定哪些字段名称应作为规范名称,然后追踪 TypeScript 类型定义和 OpenAPI 生成的输出如何表示这两个 schema。完成的标准是 API 模型使用一种一致的表示形式,且不需要冗余的反序列化处理。

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

描述

enhancement
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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

stoatchat/javascript-client-api 的其他 Issue

查看 stoatchat/javascript-client-api 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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