Checks the XML of a metadata object from a configuration export for structural errors: root structure, InternalInfo, properties, allowed values, StandardAttributes, ChildObjects, name uniqueness, tabular sections, cross-properties, nested structures of HTTP/Web services.
Usage
/meta-validate <ObjectPath>
Parameters
| Parameter | Required | Default | Description |
|---|---|---|---|
| ObjectPath | yes | — | Path to the XML file or object directory |
| MaxErrors | no | 30 | Stop after N errors |
| OutFile | no | — | Write the result to a file (UTF-8 BOM) |
ObjectPath auto-resolve: if a directory is specified — searches for <dirName>/<dirName>.xml.
Command
powershell.exe -NoProfile -File .claude/skills/meta-validate/scripts/meta-validate.ps1 -ObjectPath "<путь>"
Supported types (23)
Reference: Catalog, Document, Enum, ExchangePlan, ChartOfAccounts, ChartOfCharacteristicTypes, ChartOfCalculationTypes, BusinessProcess, Task Registers: InformationRegister, AccumulationRegister, AccountingRegister, CalculationRegister Reports/Data processors: Report, DataProcessor Service: CommonModule, ScheduledJob, EventSubscription, HTTPService, WebService Other: Constant, DocumentJournal, DefinedType
Checks performed
| # | Check | Severity |
|---|---|---|
| 1 | XML well-formedness + root structure | ERROR |
| 2 | InternalInfo / GeneratedType | ERROR / WARN |
| 3 | Properties — Name, Synonym | ERROR / WARN |
| 4 | Properties — enum values of properties | ERROR |
| 5 | StandardAttributes | ERROR / WARN |
| 6 | ChildObjects — allowed elements | ERROR |
| 7 | Attributes/Dimensions/Resources — UUID, Name, Type | ERROR |
| 8 | Name uniqueness | ERROR |
| 9 | TabularSections — internal structure | ERROR / WARN |
| 10 | Cross-properties | ERROR / WARN |
| 11 | HTTPService/WebService — nested structure | ERROR |
Output
=== Validation: Catalog.Номенклатура ===
[OK] 1. Root structure: MetaDataObject/Catalog, version 2.17
[OK] 2. InternalInfo: 5 GeneratedType (Object, Ref, Selection, List, Manager)
[OK] 3. Properties: Name="Номенклатура", Synonym present
[OK] 4. Property values: 12 enum properties checked
[ERROR] 5. StandardAttributes: missing "PredefinedDataName"
[OK] 6. ChildObjects types: Attribute(15), TabularSection(3), Form(4)
[OK] 7. Attributes/Dimensions: all valid
[WARN] 8. Name uniqueness: duplicate attribute "Комментарий" at positions 5, 12
[OK] 9. TabularSections: 3 sections, structure valid
[OK] 10. Cross-property consistency
[OK] 11. N/A (not HTTPService/WebService)
---
Errors: 1, Warnings: 1
Return code: 0 = all checks passed, 1 = there are errors.
Examples
# Справочник из выгрузки конфигурации
... -ObjectPath upload/acc_8.3.24/Catalogs/Банки/Банки.xml
# Авторезолв из директории
... -ObjectPath upload/acc_8.3.24/Documents/АвансовыйОтчет
# С лимитом ошибок
... -ObjectPath Catalogs/Номенклатура.xml -MaxErrors 10
# С записью в файл
... -ObjectPath Catalogs/Номенклатура.xml -OutFile result.txt
Verification
/meta-compile <JsonPath> <OutputDir> — генерация XML
/meta-validate <OutputDir>/<Type>/<Name>.xml — проверка результата
/meta-info <OutputDir>/<Type>/<Name>.xml — визуальная сводка
When to use
- After
/meta-compile: verify the correctness of the generated XML - After manual editing: make sure the structure is not broken
- After merge/import: identify conflicts and broken references
- When debugging: find structural errors before building the EPF