[Feature Request] Add authentication options for the repository configuration of the openapitools.json
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 38/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
调研方向
从 apps/generator-cli/src/README.md 和 apps/generator-cli/src/config.schema.json 开始,以了解已记录并经过验证的 repository 选项。跟踪从包入口点开始的 repository 配置处理,然后定义如何安全地提供凭据,支持经过身份验证的查询和下载请求,并记录在私有 repository 中两项操作都能正常工作时的配置和用法。
由索引模型根据 Issue 内容生成。
描述
Currently it is possible to specify downloadUrl and queryUrl in the repository configuration block if a private repository should be used:
{
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "5.1.1",
"storageDir": "./openapitools-download",
"repository": {
"queryUrl": "https://artifactory.mycorp.com/maven-central/select?q=g:${group.id}+AND+a:${artifact.id}&core=gav&start=0&rows=200",
"downloadUrl": "https://artifactory.mycorp.com/maven-central/${groupId}/${artifactId}/${versionName}/${artifactId}-${versionName}.jar"
}
}
}
Unfortunately the artifact-storage of my organization requires login credentials and I can thus not use this option. It would be great if something like this could be added:
{
"generator-cli": {
"repository": {
"queryUrl": "https://artifactory.mycorp.com/maven-central/select?q=g:${group.id}+AND+a:${artifact.id}&core=gav&start=0&rows=200",
"downloadUrl": "https://artifactory.mycorp.com/maven-central/${groupId}/${artifactId}/${versionName}/${artifactId}-${versionName}.jar",
"username":"",
"password":"",
}
}
}
On a general note:
I think the documentation of these configuration options could be more extensive. I learned about the repository block via a comment on an issue as it is not in the README...
- 主要语言
- TypeScript
- 星标
- 2k
- 派生
- 209
- 平均合并
- 9 小时 35 分钟
- 30 天内合并 PR
- 3
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenAPITools/openapi-generator-cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
[BUG] JAVA_OPTS is incorrectly evaluated可能重新可做 @kay-schecker 于 123 天前认领,目前没有进行中的 PR。 未关闭bug
OpenAPITools/openapi-generator-cli#1213 · 已指派 1 人 ·
-
[BUG] Proxy configuration of NPM not used when downloading .jar via version manager可能重新可做 @kay-schecker 于 178 天前认领,目前没有进行中的 PR。 未关闭bug
OpenAPITools/openapi-generator-cli#1190 · 已指派 1 人 ·
-
[BUG] openapiGeneratorIgnoreList is missing from schema可能重新可做 @kay-schecker 于 228 天前认领,目前没有进行中的 PR。 未关闭bug
OpenAPITools/openapi-generator-cli#1138 · 1 条评论 · 已指派 1 人 ·
-
[BUG] Environment variable not found (missing .env loading)可能重新可做 @kay-schecker 于 267 天前认领,目前没有进行中的 PR。 未关闭bug
OpenAPITools/openapi-generator-cli#1094 · 1 条评论 · 已指派 1 人 ·
查看 OpenAPITools/openapi-generator-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
szTheory/exifcleaner#383 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 76/100
LucasSantana-Dev/Lucky#2637 ·
维护者通常 1 天内回复
-
good first issue type: bug
难度 1/5 1 小时以内 新手友好度 88/100
medusajs/medusa#17127 · 2 条评论 ·
维护者通常 1 天内回复
-
Desktop: SSH connect and forward budgets are fixed at 15 s with no override; slow links loop on boot failure可能已有人在做 @liuhao1024 今天认领。 未关闭backend/ssh comp/desktop P2 type/bug
难度 2/5 1-3 小时 新手友好度 84/100
NousResearch/hermes-agent#132508 · 3 条评论 ·
维护者通常 1 天内回复
-
Show the error reference on the error page可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭enhancement
难度 2/5 1-3 小时 新手友好度 86/100
tomjn/coilbox-hub#454 ·
维护者通常 1 天内回复