Support discriminator for oneOf in OpenApiValidationPlugin
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
OpenApiValidationPlugin (#2037) validates oneOf strictly: a body that matches more than one branch is reported. That's correct per spec, but many real-world specs have overlapping oneOf branches and rely on discriminator to pick one, so valid payloads get flagged.
Proposal: when a discriminator is present, select the branch from the discriminator property's value, using mapping (or the implicit schema name if there's no mapping), and validate only that branch. Report a clear error when the discriminator value is missing or unknown.
Depends on #2037.
- Ngôn ngữ chính
- C#
- Star
- 838
- Fork
- 90
- Merge trung bình
- 2 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 59
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dotnet/dev-proxy
-
GetTokenizedUrl fails on parenthesized Graph URL segmentsCó thể đã có người làm @waldekmastykarz đã nhận 3 ngày trước. Đang mởwork in progress
dotnet/dev-proxy#2041 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Validate language-model mock output against the schema in OpenApiMockResponsePluginCó thể đã có người làm @waldekmastykarz đã nhận 3 ngày trước. Đang mởon hold
dotnet/dev-proxy#2039 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Support bring-your-own LLM (hosted OpenAI-compatible / Azure OpenAI) for language model integrationCó thể đã có người làm @waldekmastykarz đã nhận 3 ngày trước. Đang mởwork in progress
dotnet/dev-proxy#2034 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OpenApiSpecGeneratorPlugin omits parameters and response headers from generated specsCó thể đã có người làm @waldekmastykarz đã nhận 3 ngày trước. Đang mởbug work in progress
dotnet/dev-proxy#2032 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
breaking change on hold
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
dotnet/dev-proxy#1928 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của dotnet/dev-proxy
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
QuantConnect/Documentation#2838 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
"Create your app": .sln/.slnx step and Solution Explorer instructions don't match current C# Dev KitĐang mởarea-tutorials needs-triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
dotnet/website-feedback#1844 ·
-
Needs: Attention :wave: v5 v5-preview5
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Azure/azure-functions-core-tools#5852 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
OrchardCMS/OrchardCore#20194 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
Gothic-Unity-Project/Gothic-Unity#487 ·
Maintainer thường phản hồi trong vòng 1 ngày