From b907d4e8abbf4fc9823b8bd7bb6e9550b17586f4 Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Sat, 17 May 2025 19:10:06 +0900 Subject: [PATCH] Fix option description and warning --- .changeset/small-birds-smile.md | 5 +++++ index.ts | 2 +- src/type-name-formatter.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/small-birds-smile.md diff --git a/.changeset/small-birds-smile.md b/.changeset/small-birds-smile.md new file mode 100644 index 00000000..59624ac8 --- /dev/null +++ b/.changeset/small-birds-smile.md @@ -0,0 +1,5 @@ +--- +"swagger-typescript-api": patch +--- + +Fix typos in CLI option description and warning message. diff --git a/index.ts b/index.ts index 5a33efc0..6705c637 100644 --- a/index.ts +++ b/index.ts @@ -230,7 +230,7 @@ const generateCommand = defineCommand({ path: { type: "string", alias: "p", - description: "path/url to swagger scheme", + description: "path/url to swagger schema", required: true, }, responses: { diff --git a/src/type-name-formatter.ts b/src/type-name-formatter.ts index 11297e93..4c5d3595 100644 --- a/src/type-name-formatter.ts +++ b/src/type-name-formatter.ts @@ -27,7 +27,7 @@ export class TypeNameFormatter { const hashKey = `${typePrefix}_${name}_${typeSuffix}`; if (typeof name !== "string") { - consola.warn("wrong name of the model name", name); + consola.warn("wrong model name", name); return name; }