Azure / Azure/openapi-diff

[Rule] breaking changes, when x-ms-discriminator-value changes

Đang mở
#241 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Rule
Ngôn ngữ chính
C#
Star
290
Fork
50
Merge trung bình
5 ngày 13 giờ
Pull request đã merge (30 ngày)
5

Mô tả

Case: https://github.com/Azure/azure-rest-api-specs/pull/20376#discussion_r959039927

Reason:
`x-ms-discriminator-value` is used in client to choose the correct type/class to initialize.

Changing its value will break SDK in runtime (there will be no API change, but SDK will fail to initialize the type in runtime), or client code (if customer uses REST API directly, and use its value to match the type).

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

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

Hướng nghiên cứu

The issue names no file, test, or entry point. Start by locating how existing breaking-change rules are represented in this C# command-line tool, then trace comparison handling for x-ms-discriminator-value. Done means a changed value is reported as breaking while unchanged values are not.

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

Đánh giá

Công nghệ
csharp
Lĩnh vực
api, cli
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/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.