A part usage typed only by an item definition passes check/lint (validatePartUsagePartDefinition not checked)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
Reproduce the example with the sysml-toolkit check --lib and lint --lib entry points, using the item-only part usage shown in the issue. Trace the PartUsage validation for validatePartUsagePartDefinition and add a regression test around the no-diagnostic result. Done means both commands report a diagnostic when no item definition is a PartDefinition.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
A part usage typed only by an item def (no part def anywhere among its item definitions) loads without a diagnostic, even though the spec's own validatePartUsagePartDefinition constraint requires at least one part definition.
Observed
package P {
item def Start;
part def L { part bread : Start; }
}
Loads with ok=True and no diagnostics in OpenSysML v0.9.0. sysml-toolkit v0.9.1 exits 0 with no output on both check --lib <sysml.library> and lint --lib <sysml.library> (checked both commands).
Reference
SysML v2.0 (formal/2026-03-02), 8.3.11 Parts Abstract Syntax, validatePartUsagePartDefinition (printed p. 323):
At least one of the itemDefinitions of a PartUsage must be a PartDefinition.
partDefinition->notEmpty()
The prose immediately above the constraint states the same rule in plain language: "A PartUsage is a usage of a PartDefinition to represent a system or a part of a system. At least one of the itemDefinitions of the PartUsage must be a PartDefinition."
Request
Report a diagnostic for a part usage none of whose item definitions is a part definition.
- Ngôn ngữ chính
- Rust
- Star
- 23
- Fork
- 3
- Merge trung bình
- 9 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 Open-MBEE/sysml-toolkit
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 68/100
Tất cả issue của Open-MBEE/sysml-toolkit
Issue tương tự
-
backend::vllm diffusion multimodal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
lambdaclass/ethrex#7329 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
shadowsocks/shadowsocks-rust#2186 · 1 bình luận ·
-
[Chore]: Inconsistent wasm-pack binary invocation in justfile breaks cross-platform executionĐang mởC-bug S-awaiting-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
juspay/hyperswitch#14479 ·
Maintainer thường phản hồi trong vòng 1 ngày