Subsetting uniqueness conformance is not checked for an implicit subsetting
Maintainer thường phản hồi trong vòng 1 ngày
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
- 68/100
Hướng nghiên cứu
Start in internal/semantic/semantics/redefinition_conformance.go, especially Model.ConformanceViolations, and review how written RelSubsets/RelRedefines are traversed. Check Systems Library/Actions.sysml:57, the implicit subaction handling, and xpect/p04-nonunique-subsets-unique.kerml. Done means validation reports the uniqueness conformance error for the implicit nonunique subsetting while preserving the existing written-subsetting cases.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
validateSubsettingUniquenessConformance is checked for a subsetting written in the source (:>, subsets), but not for one the feature gets implicitly.
package N {
action def A {
action b[*] nonunique;
}
}
b is a composite action owned by an action definition, so it implicitly subsets Actions::Action::subactions (checkActionUsageSubactionSpecialization). subactions is declared Action[0..*] with no nonunique (Systems Library/Actions.sysml:57), so it is unique, and a nonunique b cannot subset it.
| model | sysml -validate (develop d9a97d6d8) |
expected (validateSubsettingUniquenessConformance) |
|---|---|---|
action b[*] nonunique; |
no errors | the same error, at b: its implicit subsetting of subactions breaks the constraint |
action b[*] nonunique :> subactions; |
3:34: error: Subsetting/redefining feature cannot be nonunique if subsetted/redefined feature is unique |
this error |
action b[*]; |
no errors | no errors |
The constraint is on the Subsetting, and an implied Subsetting is one too. Model.ConformanceViolations (internal/semantic/semantics/redefinition_conformance.go) walks only the written RelSubsets/RelRedefines relationships, plus the positional parameter counterparts for direction. validation-constraints.md lists the constraint as faithful, with only the written case (xpect/p04-nonunique-subsets-unique.kerml).
Other implicit subsettings of a unique library feature would be missed the same way. Examples are the other subactions-style features in Actions.sysml and Transfer::payload (Anything[1..*]) for a flow's payload.
- Ngôn ngữ chính
- Go
- Star
- 47
- Fork
- 13
- Merge trung bình
- 15 giờ 12 phút
- Pull request đã merge (30 ngày)
- 925
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- 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 Open-MBEE/OpenSysML
-
Definition of requirementsĐang mởquestion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Open-MBEE/OpenSysML#1359 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Open-MBEE/OpenSysML#1628 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
spec compliance
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Open-MBEE/OpenSysML#1576 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
question
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 48/100
Open-MBEE/OpenSysML#1575 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Open-MBEE/OpenSysML
Issue tương tự
-
date_time, url_encode, html_escape, to_unix_time, contains_all and contains_any panic when called without argumentsCó thể đã có người làm @antcybersec đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
projectdiscovery/dsl#372 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
blocked-needs-validation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
projectcapsule/capsule#2265 ·
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 68/100
JuliusBrussee/caveman#1449 ·
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 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bot-found bug priority: P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
madenvel/KalinkaPlayer#498 ·