mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-13 22:35:16 +03:00
537adfd3f8
- Get-RoleInfo: любой <dcscom:KEY> со строковым значением → extras; whitelist убран - Render-Role: shorthand-строка "@flag K=V" когда все extras-значения простые (regex ^[\w\.\-]+$); иначе object form - Build-Field: shorthand-роль встраивается в field-shorthand-строку - v0.9 → v0.10 Новый тест-кейс field-roles-rich (балансовые поля с balanceGroupName/balanceType, @dimension @required) — bit-perfect round-trip с compile. На сэмпле 30 ERP-отчётов: 754 → 120 sentinel'ов (-84%), 8/30 clean. ComplexRole 27 → 0.
25 lines
948 B
JSON
25 lines
948 B
JSON
{
|
||
"name": "Поле: shorthand-роль с @-флагами и KV (balanceGroupName/balanceType)",
|
||
"preRun": [
|
||
{
|
||
"script": "skd-compile/scripts/skd-compile",
|
||
"input": {
|
||
"dataSets": [{
|
||
"name": "Тест",
|
||
"query": "ВЫБРАТЬ * ИЗ РегистрНакопления.Остатки",
|
||
"fields": [
|
||
"Период: date @period",
|
||
"Контрагент: CatalogRef.Контрагенты @dimension @required",
|
||
"СуммаНач: decimal(15,2) @balance balanceGroupName=Сумма balanceType=OpeningBalance",
|
||
"СуммаКон: decimal(15,2) @balance balanceGroupName=Сумма balanceType=ClosingBalance"
|
||
]
|
||
}]
|
||
},
|
||
"args": { "-DefinitionFile": "{inputFile}", "-OutputPath": "Template.xml" },
|
||
"cwd": "{workDir}"
|
||
}
|
||
],
|
||
"params": { "templatePath": "Template.xml" },
|
||
"outputPath": "decompiled.json"
|
||
}
|