mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-10-01 14:35:54 +03:00
Платформа отвергает загрузку, если поле ввода по строке — код или номер нулевой длины: «Указано неверное поле для ввода по строке». - meta-edit: CodeLength/NumberLength = 0 убирает StandardAttribute.Code/ Number из InputByString вслед за длиной. - meta-validate: проверка 10 — такая пара (длина 0 + поле во вводе по строке) — ошибка; ловит и ручную правку. - meta-edit (PS): очищенный список-свойство оставался <X></X>, хотя py и платформа пишут <X/> — теперь самозакрывающийся. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018dc2yLQfw6wppbopM1Y4Ps
37 lines
841 B
JSON
37 lines
841 B
JSON
{
|
||
"name": "NumberLength=0 у документа — номер убирается из ввода по строке, список становится пустым",
|
||
"preRun": [
|
||
{
|
||
"script": "meta-compile/scripts/meta-compile",
|
||
"input": {
|
||
"type": "Document",
|
||
"name": "Заказ"
|
||
},
|
||
"args": {
|
||
"-JsonPath": "{inputFile}",
|
||
"-OutputDir": "{workDir}"
|
||
}
|
||
}
|
||
],
|
||
"params": {
|
||
"objectPath": "Documents/Заказ"
|
||
},
|
||
"input": {
|
||
"modify": {
|
||
"properties": {
|
||
"NumberLength": 0
|
||
}
|
||
}
|
||
},
|
||
"expect": {
|
||
"stdoutContains": "InputByString: removed StandardAttribute.Number",
|
||
"fileContains": {
|
||
"file": "Documents/Заказ.xml",
|
||
"text": [
|
||
"<NumberLength>0</NumberLength>",
|
||
"<InputByString/>"
|
||
]
|
||
}
|
||
}
|
||
}
|