in karavan-vscode/src/openapiView.ts [130:150]
export async function inputFileName(rootPath?: string, openApi?: OpenApiItem) {
window.showInputBox({
title: "Generate REST API from " + openApi?.title,
ignoreFocusOut: true,
prompt: "Integration file name",
validateInput: (text: string): string | undefined => {
if (!text || text.length === 0) {
return 'Name should not be empty';
} else {
return undefined;
}
}
}).then(value => {
if (value && openApi?.fsPath && rootPath) {
const name = utils.nameFromTitle(value);
const filename = name.toLocaleLowerCase().endsWith('.camel.yaml') ? name : name.split('.')[0] + '.camel.yaml';
const fullPath = rootPath + path.sep + filename;
selectRouteGeneration(rootPath, openApi.fsPath, fullPath, false);
}
});
}