fix(umodel): surface authoring warnings during validation - #98
fix(umodel): surface authoring warnings during validation#98Chloride233 wants to merge 1 commit into
Conversation
qiansheng91
left a comment
There was a problem hiding this comment.
Summary
Reviewed PR #98: fix(umodel): surface authoring warnings during validation
The changes appear reasonable. No critical issues found in the diff.
Automated review by github-manager-bot
|
Issue Evaluation Category: Thank you for reporting this issue. The reported behavior is being reviewed against the current codebase. Next Steps:
Automated evaluation by github-manager-bot |
|
Issue Evaluation Category: Thank you for reporting this issue. It has been classified as a potential bug and is being reviewed against the current codebase. A deeper verification will be performed. If confirmed as a valid bug, an automated fix proposal may be generated. Automated evaluation by github-manager |
|
Issue Evaluation Category: Thank you for reporting this issue. To proceed with verification, please provide:
Automated evaluation by github-manager-bot |
|
Added the requested version, reproduction steps, expected vs. actual behavior, and verification evidence to the PR description. This is a missing warning in an otherwise successful validation result on |
Summary
Service.Validatenow surfaces warning-only authoring hints for UModel elements that are schema-valid but may be less useful for downstream writes, filters, query display, or topology traversal.The hints are intentionally narrow:
entity_setwithoutspec.fieldsgets a schema-guidance warning.metric_setmetrics without bothunitanddata_formatget a display-formatting warning.entity_set_linktypes prefixed withcandidate_ormaybe_get a provisional-link warning.These warnings reuse the existing
ValidationResult.Warningsfield and do not reject model elements.What stays unchanged
related_toare not warned.data_formatbut nounitare not warned.Verification details
main; no released tag was used for this reproduction.Service.Validatewith a schema-validentity_setthat has nospec.fields, ametric_setmetric that has neitherunitnordata_format, or anentity_set_linkwhose type starts withcandidate_ormaybe_.ValidationResult.Warningsidentifies the relevant authoring field and explains why the missing or provisional metadata may reduce downstream usefulness.TestValidateReportsAuthoringWarningsreproduces the previous behavior and verifies the warning fields and non-blocking semantics added here.Test plan