Azure / Azure/azure-rest-api-specs

[BUG] The definition of AppService in Swagger is inconsistent with the value returned by the Service.

オープン
#40,887 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
App Services bug
主要言語
TypeSpec
スター
3.1k
フォーク
5.9k
平均マージ
3日 2時間
マージ済み PR(30日)
424

説明

### API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/0d9b77817effe915b68e20d1a1830bf3b682cbd3/specification/web/resource-manager/Microsoft.Web/AppService/stable/2021-02-01/WebApps.json#L4764

### API Spec version

2021-02-01

### Describe the bug

There is two customer issue related:
https://github.com/Azure/azure-sdk-for-net/issues/50743
https://github.com/Azure/azure-sdk-for-net/issues/37585
Request:
GET /subscriptions/<>/resourceGroups/<>/providers/Microsoft.Web/sites/<>/hybridconnection/<>?api-version=2021-02-01
Response:
{"id":"sdktest456","name":"Microsoft.Web/sites","type":"East US"}
The Type here is mismatch for resourceType. Or the whole response is incorrect.

### Expected behavior

{"id":"","name":"sdktest456","type":"Microsoft.Web/sites","location":"East US"}

### Actual behavior

{"id":"sdktest456","name":"Microsoft.Web/sites","type":"East US"}

### Reproduction Steps

Request:
GET /subscriptions/<>/resourceGroups/<>/providers/Microsoft.Web/sites/<>/hybridconnection/<>?api-version=2021-02-01

### Environment

_No response_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

specification/web/resource-manager/Microsoft.Web/AppService/stable/2021-02-01/WebApps.json の 4764 行目から始め、AppService の定義を文書化されたリクエストおよびレスポンスと比較します。コンテキストを把握するため、リンクされている azure-sdk-for-net の issue を確認し、その後、想定される payload の形状と実際の payload の形状を検証します。仕様がサービスのレスポンスと正確に一致するか、不一致が明確になれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
openapi
領域
api
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。