mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-20 01:20:59 +03:00
fix(meta-compile): fix String/Number length loss, RegisterRecords format, CommonModule prefix
- Parse-AttributeShorthand: combine type + length/precision from separate JSON fields (String→String(N), Number→Number(D,F)) — fixes SDBL error "Строка без спецификации длины недопустима" - Constant valueType: same length combination fix - DefinedType: accept both valueType (singular) and valueTypes (plural) - ChartOfCharacteristicTypes: default String length 0→100 - Document RegisterRecords: <xr:Record> → <xr:Item xsi:type="xr:MDObjectRef"> - ScheduledJob.MethodName, EventSubscription.Handler: auto-prepend CommonModule. prefix - meta-validate check 13: support 3-part method format (CommonModule.Module.Proc) E2E verified: 18 types (21 objects) pass cf-init → meta-compile → LoadConfigFromFiles → UpdateDBCfg Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
87dc18b120
commit
dbb39b7a3e
@@ -1181,12 +1181,20 @@ if ($propsNode -and $mdType -in @("EventSubscription","ScheduledJob") -and $scri
|
||||
|
||||
if ($methodRef) {
|
||||
$parts = $methodRef.Split('.')
|
||||
if ($parts.Count -ne 2) {
|
||||
Report-Error "13. ${mdType}.${propLabel} = '$methodRef': expected format 'CommonModuleName.ProcedureName'"
|
||||
$check13Ok = $false
|
||||
} else {
|
||||
# Format: CommonModule.ModuleName.ProcedureName (3 parts) or ModuleName.ProcedureName (2 parts, legacy)
|
||||
if ($parts.Count -eq 3 -and $parts[0] -eq "CommonModule") {
|
||||
$cmName = $parts[1]
|
||||
$procName = $parts[2]
|
||||
} elseif ($parts.Count -eq 2) {
|
||||
$cmName = $parts[0]
|
||||
$procName = $parts[1]
|
||||
} else {
|
||||
Report-Error "13. ${mdType}.${propLabel} = '$methodRef': expected format 'CommonModule.ModuleName.ProcedureName'"
|
||||
$check13Ok = $false
|
||||
$cmName = $null
|
||||
$procName = $null
|
||||
}
|
||||
if ($cmName) {
|
||||
$cmXml = Join-Path (Join-Path $script:configDir "CommonModules") "$cmName.xml"
|
||||
if (-not (Test-Path $cmXml)) {
|
||||
Report-Error "13. ${mdType}.${propLabel}: CommonModule '$cmName' not found (expected $cmXml)"
|
||||
|
||||
Reference in New Issue
Block a user