File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
src/main/java/com/epam/aidial/cfg/domain/validator Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -26,18 +26,10 @@ private void validateInterceptorRunnerAndEndpoint(Interceptor interceptor) {
26
26
String configurationEndpoint = interceptor .getConfigurationEndpoint ();
27
27
String interceptorRunner = interceptor .getInterceptorRunner ();
28
28
29
- if (endpoint != null && StringUtils .isBlank (endpoint )) {
30
- throw new IllegalArgumentException ("Invalid endpoint: '%s'" .formatted (endpoint ));
31
- }
32
-
33
29
if (configurationEndpoint != null && EndpointValidator .isInvalidUrl (configurationEndpoint )) {
34
30
throw new IllegalArgumentException ("Invalid configuration endpoint: '%s'" .formatted (configurationEndpoint ));
35
31
}
36
32
37
- if (endpoint == null && StringUtils .isBlank (interceptorRunner )) {
38
- throw new IllegalArgumentException ("Missing endpoint and interceptor runner. At least one of them should be specified" );
39
- }
40
-
41
33
if (endpoint != null && StringUtils .isNotBlank (interceptorRunner )) {
42
34
throw new IllegalArgumentException (
43
35
"Both endpoint: '%s' and interceptor runner: '%s' are specified. Only one of them should be specified"
You can’t perform that action at this time.
0 commit comments