adjust validation for master url
This commit is contained in:
parent
3192fe35e6
commit
2017eebeba
@ -67,7 +67,7 @@ namespace SharedLibraryCore.Configuration.Validation
|
|||||||
|
|
||||||
RuleFor(_app => _app.MasterUrl)
|
RuleFor(_app => _app.MasterUrl)
|
||||||
.NotNull()
|
.NotNull()
|
||||||
.Must(_url => _url != null && _url.Scheme == Uri.UriSchemeHttp);
|
.Must(_url => _url != null && (_url.Scheme == Uri.UriSchemeHttp || _url.Scheme == Uri.UriSchemeHttps));
|
||||||
|
|
||||||
RuleFor(_app => _app.CommandPrefix)
|
RuleFor(_app => _app.CommandPrefix)
|
||||||
.NotEmpty();
|
.NotEmpty();
|
||||||
@ -80,4 +80,4 @@ namespace SharedLibraryCore.Configuration.Validation
|
|||||||
.SetValidator(new ServerConfigurationValidator());
|
.SetValidator(new ServerConfigurationValidator());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user