API Center: Inconsistent Title Length Validation Between APIM Sync and APIOps CLI

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

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
活跃
技术栈
azure, typescript
领域
api

调研方向

The issue does not name any file or function, so start by reproducing the failure: extract an API with a title over 50 characters from API Center with the APIOps CLI, then publish it back and capture the validation error. Then check whether the 50-character limit comes from the CLI or from the Azure API Center service, since the issue asks whether the limit is intentional. Done means a maintainer confirms which side should change, and any fix or documented limit is agreed on in the thread first.

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

描述

stale type:question
Question

I noticed an inconsistency between Azure API Center's native APIM synchronization and APIOps CLI publishing.

When APIs are synchronized from Azure API Management to Azure API Center using the native integration, APIs with titles exceeding 50 characters are successfully registered.

However, when extracting the same APIs from API Center using APIOps CLI and attempting to publish them back, publishing fails with a validation error indicating that the title cannot exceed 50 characters.

I have a few questions:

  • Why does native APIM-to-API Center synchronization allow API titles exceeding 50 characters while APIOps CLI publishing does not?

  • Is the 50-character restriction an intentional API Center limitation, or is this an inconsistency between the two integration methods?

  • Is there a plan to align this behavior so that APIs synchronized through the native integration can be extracted and republished without modification?

This creates a challenge when managing API Center resources through GitOps, as APIs successfully synchronized from APIM cannot be republished without modifying their titles.

Context
Steps to reproduce
  • Create an API in Azure API Management with a display name exceeding 50 characters.

  • Synchronize the API to Azure API Center using native APIM integration.

  • Confirm that the API is successfully registered in API Center.

  • Extract the API Center configuration using APIOps CLI.

  • Attempt to publish the extracted configuration back to API Center.

  • Observe the title length validation error.

主要语言
TypeScript
星标
44
派生
14
PR 合并指标
30 天内没有已合并 PR

环境准备

在 Codespaces 中打开

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

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

从这里开始

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

Azure/apiops-cli 的其他 Issue

查看 Azure/apiops-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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