mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-08-03 10:10:21 +03:00
fix(skd-validate): принимать <dcsset:item> без xsi:type как StructureItemGroup
Platform эмитит StructureItemGroup как короткую форму <dcsset:item> без xsi:type (это дефолтный тип). Раньше валидатор выдавал error на любой реальный XML с такой формой. Теперь — отсутствие xsi:type трактуется как dcsset:StructureItemGroup (с warning только для нестандартных типов).
This commit is contained in:
@@ -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:
|
||||
report_error(f"Variant '{variant_name}': structure item missing xsi:type")
|
||||
return
|
||||
xsi_type = "dcsset:StructureItemGroup"
|
||||
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