We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 985c99d commit 0184dd4Copy full SHA for 0184dd4
cli/src/commands/InitCommand.ts
@@ -130,7 +130,7 @@ export class InitCommand extends Command {
130
message: "Url",
131
placeholder: "https://.../openapi.json",
132
validate(value) {
133
- if (!value.startsWith("https://") || !value.startsWith("http://")) {
+ if (!value.startsWith("https://") && !value.startsWith("http://")) {
134
return "Url must starts with http or https protocol";
135
}
136
if (
0 commit comments