From b1156e19e6a02e9c0c8c5dcadd741a859717ac05 Mon Sep 17 00:00:00 2001 From: ign13101 Date: Tue, 16 May 2023 19:37:48 +0200 Subject: [PATCH] fix: Awkward phrasing in filePrompt and serverPrompt fixed --- lib/prompts/filePrompt.js | 2 +- lib/prompts/serverPrompt.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/prompts/filePrompt.js b/lib/prompts/filePrompt.js index df17f81..d7eb929 100644 --- a/lib/prompts/filePrompt.js +++ b/lib/prompts/filePrompt.js @@ -90,7 +90,7 @@ export default [ { type: "input", name: "pathName", - message: "Where will be file generated?", + message: "Where will the file be generated?", validate: (input, answers) => (answers.json ? /[\w_\\/]+\.json$/ : /[\w_\\/]+\.yaml$/).test(input), default: (answers) => `oas-doc.${answers.json ? 'json' : 'yaml'}`, when: (answers) => answers.command === 'OpenAPI File' diff --git a/lib/prompts/serverPrompt.js b/lib/prompts/serverPrompt.js index 3d1683f..43a98c9 100644 --- a/lib/prompts/serverPrompt.js +++ b/lib/prompts/serverPrompt.js @@ -2,7 +2,7 @@ export default [ { type: "input", name: "pathName", - message: "Where will be files generated?", + message: "Where will the files be generated?", when: (answers) => answers.command === 'Server', default: 'generated-server' },