Skip to content

Commit b907d4e

Browse files
committed
Fix option description and warning
1 parent f8ff3b0 commit b907d4e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/small-birds-smile.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"swagger-typescript-api": patch
3+
---
4+
5+
Fix typos in CLI option description and warning message.

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ const generateCommand = defineCommand({
230230
path: {
231231
type: "string",
232232
alias: "p",
233-
description: "path/url to swagger scheme",
233+
description: "path/url to swagger schema",
234234
required: true,
235235
},
236236
responses: {

src/type-name-formatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class TypeNameFormatter {
2727
const hashKey = `${typePrefix}_${name}_${typeSuffix}`;
2828

2929
if (typeof name !== "string") {
30-
consola.warn("wrong name of the model name", name);
30+
consola.warn("wrong model name", name);
3131
return name;
3232
}
3333

0 commit comments

Comments
 (0)