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

[BUG] API suffix not allowed to duplicate for version sets

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

还没有人认领这个 Issue。

评估

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

调研方向

未指定源文件或测试。首先使用同一版本集中的两个 API 版本和相同的 API 后缀重现迁移,然后跟踪创建 API 的 APIops 部署路径。迁移成功且没有重复路径验证错误,并且现有行为仍由测试覆盖,即表示完成。

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

描述

Release version

v6.0.2-alpha.1.0.2

Describe the bug

APIs have same API suffix of versions, it throws an error
##[error]System.Net.Http.HttpRequestException: HTTP request to URI https://management.azure.com/subscriptions/*********resourceGroups/Resource-group/providers/Microsoft.ApiManagement/service/APIM/apis/APIr-v2;rev=2?api-version=2023-09-01-preview failed with status code 400. Content is '{"error":{"code":"ValidationError","message":"One or more fields contain incorrect values:","details":[{"code":"ValidationError","target":"path","message":"Cannot create API 'API-v2' with the same Path 'glb/supplier' as API 'API-v03' unless it's a part of the same version set"}]}}'.

Expected behavior

I can manually create new version of API in the same version set with same API suffix which is not possible via APIops

Actual behavior

APIops throws an error, not allowing to create API version sets with same API suffix

Reproduction Steps
  1. Create an API in API management
  2. create version 1 and 2 with same API suffix
  3. Migrate API via APIops
主要语言
C#
星标
448
派生
248
PR 合并指标
30 天内没有已合并 PR

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

Azure/apiops 的其他 Issue

查看 Azure/apiops 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

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