[PHP] Default headers should be configurable
还没有人认领这个 Issue。
评估
调研方向
从 src/main/resources/handlebars/php/HeaderSelector.mustache 第 41 行开始,这里定义了默认的空 headers 数组。跟踪此模板如何用于生成的 PHP 客户端,并验证生成的客户端可以接受额外的默认 headers,同时不会丢失文档中记录的 headers。
由索引模型根据 Issue 内容生成。
描述
At present there's no way to inject default headers. There are instances when you may wish to include additional headers that aren't defined by the Swagger Documentation, perhaps for debugging or slight differences in API flows.
The default empty $headers array should be configurable.
- 主要语言
- Mustache
- 星标
- 299
- 派生
- 439
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
swagger-api/swagger-codegen-generators 的其他 Issue
-
[Bug]: Python/pythonFlaskConnexion generators validate map keys instead of values for additionalProperties.enum可能已有人在做 @pvillard31 于 170 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 86/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
[Bug]: Bean validation doesn't work for numbers larger than Integer.MAX_VALUE可能已有人在做 @apupier 于 258 天前认领。 未关闭Bug
难度 2/5 1-3 小时 新手友好度 68/100
swagger-api/swagger-codegen-generators#1370 · 3 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 64/100
-
难度 1/5 1-3 小时 新手友好度 72/100
查看 swagger-api/swagger-codegen-generators 的全部 Issue
相似的 Issue
-
area: capture good first issue priority: P2 type: defect
难度 2/5 1-3 小时 新手友好度 78/100
jiegui2025/hwspec#51 ·
维护者通常 1 天内回复
-
[Feature]:未关闭enhancement
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 72/100
thephpleague/commonmark#1159 ·
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
EchoTools/nevr-runtime#117 · 2 条评论 ·
维护者通常 1 天内回复
-
Proxy drops log notifications from backends that don't send FastMCP's msg/extra dict可能已有人在做 @asasemahmed 今天认领。 未关闭bug server
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复