ApiOps CLI Publisher fails with empty urlTemplate error.
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with the supplied operationInformation.json for notification-socket-v1/operations/onHandshake and trace how apiops publish processes its urlTemplate. Reproduce with the command and artifact described in the issue; done means the WebSocket handshake operation can be published with an empty urlTemplate.
索引モデルが issue の本文から書いたものです。
説明
Command that triggered the bug
npx apiops publish
Expected behavior
The publisher pipeline can publish the Websocket onHandshake API with a empty urlTemplate.
Actual behavior
Our Publisher pipeline is failing when running the apiops publish command with this error:
The Command from the pipeline:
npx apiops publish `
--resource-group '${{ parameters.resourceGroupName }}' `
--service-name '${{ parameters.apiManagementServiceName }}' `
--source '${{ parameters.artifactSource }}' `
--overrides '${{ parameters.configurationPath }}' `
--subscription-id $subscriptionId `
--commit-id '$(Build.SourceVersion)'
The Error:
ERROR PUT apioperation/notification-socket-v1/onHandshake: HTTP 400: {"error":{"code":"ValidationError","message":"One or more fields contain incorrect values:","details":[{"code":"ValidationError","target":"urlTemplate","message":"'urlTemplate' should not be empty."}]}}
The API is a WebSocket API & the Socket is opening a handshake to the PubSub. We need an empty urlTemplate for it because we cant change it in azure.
This is the artifact file from it (apim-artifacts\apis\notification-socket-v1\operations\onHandshake\operationInformation.json):
{
"id": "/subscriptions/<>/resourceGroups/<>/providers/Microsoft.ApiManagement/service/<>/apis/notification-socket-v1/operations/onHandshake",
"type": "Microsoft.ApiManagement/service/apis/operations",
"name": "onHandshake",
"properties": {
"displayName": "onHandshake",
"method": "GET",
"urlTemplate": "",
"templateParameters": [],
"description": "WebSocket opening handshake",
"responses": [],
"policies": null,
"effectivePath": null
}
}
apiops CLI version
1.0.4
Environment details
- Image: ubuntu-latest
- NodeJs: 22.x
CI/CD environment
Azure DevOps
Is this bug blocking you?
Yes
- 主要言語
- TypeScript
- スター
- 29
- フォーク
- 11
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 15
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/apiops-cli のほかの issue
-
type:question
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Azure/apiops-cli#277 ·
メンテナーはふだん 1 日以内に返信
-
stale type:documentation
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
Azure/apiops-cli#250 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Documentation P2 stale
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Azure/apiops-cli#24 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
type:feature
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
Azure/apiops-cli#316 ·
メンテナーはふだん 1 日以内に返信
-
Named value transitive dependency not being extracted when used only in backend credentials headerオープンtype:bug
難易度 3/5 1〜2日 初心者へのやさしさ 66/100
Azure/apiops-cli#315 ·
メンテナーはふだん 1 日以内に返信
Azure/apiops-cli の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
profullstack/ugig.net#601 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
github/codeql-action#4202 ·
メンテナーはふだん 1 日以内に返信
-
agents: formatReport/reportOrigin only importable through an entry that loads every runtime (~1.5 s)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area:runtime bug
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信