Azure / Azure/azure-rest-api-specs
[BUG] The definition of AppService in Swagger is inconsistent with the value returned by the Service.
- 主要语言
- TypeSpec
- 星标
- 3.1k
- 派生
- 5.9k
- 平均合并
- 3 天 37 分钟
- 30 天内合并 PR
- 446
描述
### 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 issues 以了解上下文,然后验证预期和实际的 payload 形状;当 specification 准确匹配 service response,或差异已得到澄清时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- openapi
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100