Files
cc-1c-skills/tests/skills/cases/form-compile-from-object/catalog-item-simple.json
T
Nick Shirokov a41897a966 test(form-compile): regression tests for --from-object mode
4 snapshot tests: catalog item/list (Валюты-like) + document item/list
(АктВВР-like). Verified against platform 1C 8.3.24. Register
form-compile-from-object in verify-snapshots DEFAULT_SKILLS.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 18:40:12 +03:00

40 lines
1.8 KiB
JSON

{
"name": "Catalog Item — простой справочник (Валюты-like, Code+Description+7 реквизитов)",
"preRun": [
{
"script": "meta-compile/scripts/meta-compile",
"input": {
"type": "Catalog",
"name": "Валюты",
"codeLength": 3,
"descriptionLength": 10,
"attributes": [
{ "name": "ЗагружаетсяИзИнтернета", "type": "Boolean" },
{ "name": "НаименованиеПолное", "type": "String", "length": 50 },
{ "name": "Наценка", "type": "Number", "length": 10, "precision": 2 },
{ "name": "ОсновнаяВалюта", "type": "CatalogRef.Валюты" },
{ "name": "ПараметрыПрописи", "type": "String", "length": 200 },
{ "name": "ФормулаРасчетаКурса", "type": "String", "length": 100 },
{ "name": "СпособУстановкиКурса", "type": "EnumRef.СпособыУстановкиКурсаВалюты" }
],
"tabularSections": [
{
"name": "Представления",
"attributes": [
{ "name": "КодЯзыка", "type": "String", "length": 10 },
{ "name": "ПараметрыПрописи", "type": "String", "length": 200 }
]
}
]
},
"args": { "-JsonPath": "{inputFile}", "-OutputDir": "{workDir}" }
},
{
"script": "form-add/scripts/form-add",
"args": { "-ObjectPath": "{workDir}/Catalogs/Валюты.xml", "-FormName": "ФормаЭлемента" }
}
],
"params": { "outputPath": "Catalogs/Валюты/Forms/ФормаЭлемента/Ext/Form.xml" },
"validatePath": "Catalogs/Валюты/Forms/ФормаЭлемента/Ext/Form.xml"
}