mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-11 16:34:57 +03:00
d1e770c843
add-element and add-group-with-fields built their baseline form with an InputField whose DataPath pointed to "Поле1", but "Поле1" was never declared as a form attribute. runner.mjs snapshot diffing accepted the output, but verify-snapshots caught the real XDTO error at load time: "Неверный путь к данным: Поле1". Add the missing attribute to both preRun form-compile inputs and regenerate snapshots (the new attribute takes id=5, so form-edit's added "Поле2" now lands at id=6). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
39 lines
1.3 KiB
JSON
39 lines
1.3 KiB
JSON
{
|
|
"name": "Добавление элемента на форму",
|
|
"preRun": [
|
|
{
|
|
"script": "meta-compile/scripts/meta-compile",
|
|
"input": { "type": "DataProcessor", "name": "Тест" },
|
|
"args": { "-JsonPath": "{inputFile}", "-OutputDir": "{workDir}" }
|
|
},
|
|
{
|
|
"script": "form-add/scripts/form-add",
|
|
"args": { "-ObjectPath": "{workDir}/DataProcessors/Тест.xml", "-FormName": "Форма" }
|
|
},
|
|
{
|
|
"script": "form-compile/scripts/form-compile",
|
|
"input": {
|
|
"title": "Тест",
|
|
"attributes": [
|
|
{ "name": "Объект", "type": "DataProcessorObject.Тест", "main": true },
|
|
{ "name": "Поле1", "type": "string(100)" }
|
|
],
|
|
"elements": [
|
|
{ "input": "Поле1", "path": "Поле1", "title": "Поле 1" }
|
|
]
|
|
},
|
|
"args": { "-JsonPath": "{inputFile}", "-OutputPath": "{workDir}/DataProcessors/Тест/Forms/Форма/Ext/Form.xml" }
|
|
}
|
|
],
|
|
"params": { "formPath": "DataProcessors/Тест/Forms/Форма/Ext/Form.xml" },
|
|
"skipValidation": true,
|
|
"input": {
|
|
"elements": [
|
|
{ "input": "Поле2", "path": "Поле2", "title": "Поле 2" }
|
|
],
|
|
"attributes": [
|
|
{ "name": "Поле2", "type": "string(100)" }
|
|
]
|
|
}
|
|
}
|