mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-12 17:04:57 +03:00
e3069ceb36
KNOWN_INVALID_TYPES (FormDataStructure, FormDataCollection, FormDataTree, etc.) was checked but only produced a Write-Warning/print warning — the script still emitted the bad <v8:Type> into Form.xml, which XDTO later rejected with a cryptic load-time error. Turn the warning into a hard throw so misuse is caught at compile time with the correct hint. Reveals two broken test cases that shipped invalid forms: - form-compile/catalog-form: main attribute was FormDataStructure, fixed to CatalogObject.Товары (what ERP's reference catalog forms actually use with the cfg: prefix). - form-info/overview: preRun form-compile used the same wrong type, fixed the same way; snapshot regenerated. Bumps form-compile to v1.4 on both runtimes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
21 lines
915 B
JSON
21 lines
915 B
JSON
{
|
|
"name": "Обзор формы",
|
|
"preRun": [
|
|
{
|
|
"script": "meta-compile/scripts/meta-compile",
|
|
"input": { "type": "Catalog", "name": "Товары" },
|
|
"args": { "-JsonPath": "{inputFile}", "-OutputDir": "{workDir}" }
|
|
},
|
|
{
|
|
"script": "form-add/scripts/form-add",
|
|
"args": { "-ObjectPath": "{workDir}/Catalogs/Товары.xml", "-FormName": "Форма" }
|
|
},
|
|
{
|
|
"script": "form-compile/scripts/form-compile",
|
|
"input": { "title": "Тест", "attributes": [{ "name": "Объект", "type": "CatalogObject.Товары", "main": true }], "elements": [{ "type": "InputField", "dataPath": "Объект.Наименование" }] },
|
|
"args": { "-JsonPath": "{inputFile}", "-OutputPath": "{workDir}/Catalogs/Товары/Forms/Форма/Ext/Form.xml" }
|
|
}
|
|
],
|
|
"params": { "formPath": "Catalogs/Товары/Forms/Форма/Ext/Form.xml" }
|
|
}
|