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; }