Files
cc-1c-skills/tests/skills/cases/meta-edit/set-empty-registerrecords-adopted.json
T
Nick ShirokovandClaude Opus 5.5 2fc5659b47 fix(meta-edit): modify.properties не создаёт элемент свойства-списка в обход проверок
modify.properties создавал отсутствующий элемент до Set-ComplexProperty, и решение
Get-ListPropertyElement обходилось: пустой список дописывал <RegisterRecords/>
заимствованному объекту, а у обычного объекта без элемента не было отказа.
Свойство-список теперь уходит в Set-ComplexProperty до create-if-missing.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 17:10:56 +03:00

102 lines
2.3 KiB
JSON

{
"name": "Пустой список движений у заимствованного документа без элемента: ничего не создаётся",
"setup": "empty-config-220",
"preRun": [
{
"script": "meta-compile/scripts/meta-compile",
"input": {
"type": "AccumulationRegister",
"name": "Ост",
"dimensions": [
"Товар: String(10)"
],
"resources": [
"Кол: Number(10,0)"
]
},
"args": {
"-JsonPath": "{inputFile}",
"-OutputDir": "{workDir}"
}
},
{
"script": "meta-compile/scripts/meta-compile",
"input": {
"type": "AccumulationRegister",
"name": "Ост2",
"dimensions": [
"Товар: String(10)"
],
"resources": [
"Кол: Number(10,0)"
]
},
"args": {
"-JsonPath": "{inputFile}",
"-OutputDir": "{workDir}"
}
},
{
"script": "meta-compile/scripts/meta-compile",
"input": {
"type": "Document",
"name": "Расх",
"registerRecords": [
"AccumulationRegister.Ост",
"AccumulationRegister.Ост2"
]
},
"args": {
"-JsonPath": "{inputFile}",
"-OutputDir": "{workDir}"
}
},
{
"script": "meta-compile/scripts/meta-compile",
"input": {
"type": "Document",
"name": "Прих"
},
"args": {
"-JsonPath": "{inputFile}",
"-OutputDir": "{workDir}"
}
},
{
"script": "cfe-init/scripts/cfe-init",
"args": {
"-Name": "Расш",
"-OutputDir": "{workDir}/cfe",
"-ConfigPath": "{workDir}"
}
},
{
"script": "cfe-borrow/scripts/cfe-borrow",
"args": {
"-ExtensionPath": "{workDir}/cfe",
"-ConfigPath": "{workDir}",
"-Object": "Document.Прих ;; AccumulationRegister.Ост ;; AccumulationRegister.Ост2"
}
}
],
"params": {
"objectPath": "cfe/Documents/Прих.xml",
"extensionPath": "cfe"
},
"input": {
"modify": {
"properties": {
"RegisterRecords": []
}
}
},
"expect": {
"fileNotContains": [
{
"file": "cfe/Documents/Прих.xml",
"text": "RegisterRecords"
}
]
}
}