mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-10 16:14:54 +03:00
Revert "fix(skd-validate): принимать <dcsset:item> без xsi:type как StructureItemGroup"
This reverts commit 3ef4f44028.
This commit is contained in:
@@ -655,8 +655,10 @@ function Check-StructureItem {
|
||||
if ($script:stopped) { return }
|
||||
|
||||
$xsiType = $itemNode.GetAttribute("type", "http://www.w3.org/2001/XMLSchema-instance")
|
||||
# StructureItemGroup — дефолтный тип, platform эмитит <dcsset:item> без xsi:type.
|
||||
if (-not $xsiType) { $xsiType = 'dcsset:StructureItemGroup' }
|
||||
if (-not $xsiType) {
|
||||
Report-Error "Variant '$variantName': structure item missing xsi:type"
|
||||
return
|
||||
}
|
||||
if ($validStructureTypes -notcontains $xsiType) {
|
||||
Report-Warn "Variant '$variantName': unusual structure item type '$xsiType'"
|
||||
}
|
||||
|
||||
@@ -622,9 +622,9 @@ def check_structure_item(item_node, variant_name):
|
||||
return
|
||||
|
||||
xsi_type = item_node.get(XSI_TYPE, "")
|
||||
# StructureItemGroup — дефолтный тип, platform эмитит <dcsset:item> без xsi:type.
|
||||
if not xsi_type:
|
||||
xsi_type = "dcsset:StructureItemGroup"
|
||||
report_error(f"Variant '{variant_name}': structure item missing xsi:type")
|
||||
return
|
||||
if xsi_type not in valid_structure_types:
|
||||
report_warn(f"Variant '{variant_name}': unusual structure item type '{xsi_type}'")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user