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

OpenAPI spec omits the write-only settings secrets

未关闭 适合新手
#3,968 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
openapi, rust
领域
api, documentation

调研方向

首先定位设置请求类型及其用于 LDAP 和 SMTP 密钥的 #[serde(skip_serializing)] 字段,然后阅读 PUT /api/v1/settings 的 schema 是如何生成的。检查 schema 是否支持包含只写字段的覆盖,并运行相关的 OpenAPI 测试或检查生成的规范。四个密钥字段都出现在请求 schema 中即为完成。

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

描述

Currenlty utoipa treats #[serde(skip_serializing)] exactly like #[serde(skip)], and no #[schema(...)] attribute overrides it.
As a result, the PUT /api/v1/settings request schema omits ldap_bind_password, smtp_password, smtp_oauth_client_secret and smtp_oauth_refresh_token. API users can't find out from the docs that these fields can be written.

主要语言
Rust
星标
2.9k
派生
121
平均合并
18 小时 3 分钟
30 天内合并 PR
103

环境准备

从这里开始

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

DefGuard/defguard 的其他 Issue

查看 DefGuard/defguard 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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