mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-09-27 04:25:54 +03:00
ps1 сопоставлял ключ свойства без учёта регистра, но при создании элемента писал тег как подан: registerRecords у заимствованного документа давал <registerRecords>, и meta-validate его пропускал. py сравнивал точно и на том же входе отказывал. Ключ свойства объекта и дочернего элемента теперь сводится к каноническому имени (ключи веток modify — name/type/synonym… — впереди списка свойств), дальше в обоих портах только оно. Попутно: py при переименовании сравнивал синоним с разбивкой старого имени с учётом регистра и не обновлял авто-синоним «ИНН»; сравнение теперь без учёта регистра, как в ps1. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
112 lines
2.6 KiB
JSON
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"
|
|
}
|
|
]
|
|
}
|
|
}
|