fix(scaffold): apply target system code naming for MCI converter and abbreviate baseName
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 17s
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 17s
This commit is contained in:
@@ -2762,7 +2762,7 @@ function initializeMciResponseNames(parsed) {
|
||||
const labels = mciTransformLabels();
|
||||
const baseName = rootName.replace(/_[OI]$/, '') || 'MciOutput';
|
||||
const dtoName = `${baseName}${labels.dto}`;
|
||||
const converterName = `${baseName}${labels.dto}Converter`;
|
||||
const converterName = `${baseName}Converter`;
|
||||
document.getElementById('mciResponseClassName').value = dtoName;
|
||||
document.getElementById('mciConverterClassName').value = converterName;
|
||||
mciResponseState.autoConverterName = converterName;
|
||||
@@ -2999,9 +2999,14 @@ function downloadMciResponseSource(kind) {
|
||||
}
|
||||
|
||||
function converterNameFor(responseName) {
|
||||
return responseName && responseName.endsWith('Response')
|
||||
? responseName.slice(0, -8) + 'Converter'
|
||||
: (responseName ? responseName + 'Converter' : '');
|
||||
if (!responseName) return '';
|
||||
if (responseName.endsWith('Response')) {
|
||||
return responseName.slice(0, -8) + 'Converter';
|
||||
}
|
||||
if (responseName.endsWith('Request')) {
|
||||
return responseName.slice(0, -7) + 'Converter';
|
||||
}
|
||||
return responseName + 'Converter';
|
||||
}
|
||||
|
||||
function setMciResponseButtonBusy(button, busy, text) {
|
||||
|
||||
Reference in New Issue
Block a user