Files
cc-1c-skills/tests/skills/cases/meta-edit/lenient-property-key-case-adopted.json
T
Nick ShirokovandClaude Opus 5.5 0ff848784e fix(meta-edit): ключ свойства в любом регистре — в XML каноническое имя
ps1 сопоставлял ключ свойства без учёта регистра, но при создании элемента писал
тег как подан: registerRecords у заимствованного документа давал <registerRecords>,
и meta-validate его пропускал. py сравнивал точно и на том же входе отказывал.

Ключ свойства объекта и дочернего элемента теперь сводится к каноническому имени
(ключи веток modify — name/type/synonym… — впереди списка свойств), дальше в обоих
портах только оно. Попутно: py при переименовании сравнивал синоним с разбивкой
старого имени с учётом регистра и не обновлял авто-синоним «ИНН»; сравнение теперь
без учёта регистра, как в ps1.

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

112 lines
2.6 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": [
"AccumulationRegister.Ост"
]
}
}
},
"expect": {
"fileContains": [
{
"file": "cfe/Documents/Прих.xml",
"text": [
"<RegisterRecords>"
]
}
],
"fileNotContains": [
{
"file": "cfe/Documents/Прих.xml",
"text": "<registerRecords"
}
]
}
}