Skip to content

Commit 0184dd4

Browse files
committed
fix: fix url validation on the init command
1 parent 985c99d commit 0184dd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/commands/InitCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class InitCommand extends Command {
130130
message: "Url",
131131
placeholder: "https://.../openapi.json",
132132
validate(value) {
133-
if (!value.startsWith("https://") || !value.startsWith("http://")) {
133+
if (!value.startsWith("https://") && !value.startsWith("http://")) {
134134
return "Url must starts with http or https protocol";
135135
}
136136
if (

0 commit comments

Comments
 (0)