Azure / Azure/azure-rest-api-specs

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

Đang mở
#40,887 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
App Services bug
Ngôn ngữ chính
TypeSpec
Star
3.1k
Fork
5.9k
Merge trung bình
3 ngày 2 giờ
Pull request đã merge (30 ngày)
424

Mô tả

### 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_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu tại specification/web/resource-manager/Microsoft.Web/AppService/stable/2021-02-01/WebApps.json ở dòng 4764 và so sánh định nghĩa AppService với request và response đã được ghi lại. Xem lại các issue azure-sdk-for-net được liên kết để có ngữ cảnh, sau đó xác minh dạng payload dự kiến và thực tế; hoàn thành nghĩa là specification khớp chính xác với response của service hoặc sự khác biệt đã được làm rõ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
openapi
Lĩnh vực
api
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
42/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.