Skip to content

Commit

Permalink
Add logic for prepare and execute calls of API Chat feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ashera96 committed Mar 17, 2024
1 parent ed1f4da commit 5698069
Show file tree
Hide file tree
Showing 9 changed files with 190 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ public final class APIConstants {
public static final String API_CHAT_ENDPOINT = API_CHAT + "Endpoint";
public static final String API_CHAT_HEALTH_RESOURCE = "/health"; // "/api-chat/health"
public static final String API_CHAT_PREPARE_RESOURCE = "/prepare"; // "/api-chat/prepare"
public static final String API_CHAT_EXECUTE_RESOURCE = "/execute"; // "/api-chat/execute"
public static final String API_CHAT_EXECUTE_RESOURCE = "/chat"; // "/api-chat/chat"

//documentation rxt

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10392,6 +10392,22 @@ public static boolean isApiChatEnabled() {
return Boolean.parseBoolean(isApiChatEnabled);

Check warning on line 10392 in components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java#L10392

Added line #L10392 was not covered by tests
}

/**
* Checks whether an auth token is provided for AI features to use. This token is utilized for authentication and
* throttling purposes.
*
* @return returns true if a valid auth token is found, false otherwise.
*/
public static boolean isAuthTokenProvidedForAIFeatures() {
APIManagerConfiguration config = ServiceReferenceHolder.getInstance().
getAPIManagerConfigurationService().getAPIManagerConfiguration();
String authToken = config.getFirstProperty(APIConstants.API_CHAT_AUTH_TOKEN);

Check warning on line 10404 in components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java#L10402-L10404

Added lines #L10402 - L10404 were not covered by tests
if (authToken == null || authToken.equals("")) {
return false;

Check warning on line 10406 in components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java#L10406

Added line #L10406 was not covered by tests
}
return true;

Check warning on line 10408 in components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java#L10408

Added line #L10408 was not covered by tests
}

/**
* This method is used for AI Service health check purposes. This will be utilized by API-Chat feature and
* Marketplace-Assistant feature
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5419,6 +5419,14 @@ components:
properties too will affect the maximum password length allowed and an
intersection of all conditions will be considered finally to validate
the password.
isApiChatEnabled:
type: boolean
description: Specifies whether API Chat feature is enabled.
default: true
isAIFeatureAuthTokenProvided:
type: boolean
description: Checks if the auth token is provided for AI service usage.
default: false
ApplicationAttribute:
title: Application attributes
type: object
Expand Down Expand Up @@ -5912,9 +5920,7 @@ components:
path:
type: string
description: Path of the Http resource
queryParameters:
type: object
pathParameters:
parameters:
type: object
requestBody:
type: object
Expand Down Expand Up @@ -5944,6 +5950,10 @@ components:
type: integer
description: HTTP status code of the response
example: 201
path:
type: string
description: HTTP path url with encoded parameters
example: "/order/123"
headers:
type: object
description: Response headers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
public class ApiChatExecuteRequestResponseDTO {

Check warning on line 21 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java#L21

Added line #L21 was not covered by tests

private Integer code = null;
private String path = null;
private Object headers = null;
private Object body = null;

Check warning on line 26 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java#L23-L26

Added lines #L23 - L26 were not covered by tests

Expand All @@ -42,6 +43,24 @@ public void setCode(Integer code) {
this.code = code;
}

Check warning on line 44 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java#L43-L44

Added lines #L43 - L44 were not covered by tests

/**
* HTTP path url with encoded parameters
**/
public ApiChatExecuteRequestResponseDTO path(String path) {
this.path = path;
return this;

Check warning on line 51 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java#L50-L51

Added lines #L50 - L51 were not covered by tests
}


@ApiModelProperty(example = "/order/123", value = "HTTP path url with encoded parameters")
@JsonProperty("path")
public String getPath() {
return path;

Check warning on line 58 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java#L58

Added line #L58 was not covered by tests
}
public void setPath(String path) {
this.path = path;
}

Check warning on line 62 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java#L61-L62

Added lines #L61 - L62 were not covered by tests

/**
* Response headers
**/
Expand Down Expand Up @@ -91,13 +110,14 @@ public boolean equals(java.lang.Object o) {
}
ApiChatExecuteRequestResponseDTO apiChatExecuteRequestResponse = (ApiChatExecuteRequestResponseDTO) o;

Check warning on line 111 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java#L111

Added line #L111 was not covered by tests
return Objects.equals(code, apiChatExecuteRequestResponse.code) &&
Objects.equals(path, apiChatExecuteRequestResponse.path) &&
Objects.equals(headers, apiChatExecuteRequestResponse.headers) &&
Objects.equals(body, apiChatExecuteRequestResponse.body);
}

@Override
public int hashCode() {
return Objects.hash(code, headers, body);
return Objects.hash(code, path, headers, body);

Check warning on line 120 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java#L120

Added line #L120 was not covered by tests
}

@Override
Expand All @@ -106,6 +126,7 @@ public String toString() {
sb.append("class ApiChatExecuteRequestResponseDTO {\n");

Check warning on line 126 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/ApiChatExecuteRequestResponseDTO.java#L125-L126

Added lines #L125 - L126 were not covered by tests

sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).append("\n");
sb.append(" headers: ").append(toIndentedString(headers)).append("\n");
sb.append(" body: ").append(toIndentedString(body)).append("\n");
sb.append("}");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ public static MethodEnum fromValue(String v) {
}
private MethodEnum method = null;
private String path = null;
private Object queryParameters = null;
private Object pathParameters = null;
private Object parameters = null;
private Object requestBody = null;

Check warning on line 64 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/HttpToolDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/HttpToolDTO.java#L61-L64

Added lines #L61 - L64 were not covered by tests

/**
Expand Down Expand Up @@ -142,38 +141,20 @@ public void setPath(String path) {

/**
**/
public HttpToolDTO queryParameters(Object queryParameters) {
this.queryParameters = queryParameters;
public HttpToolDTO parameters(Object parameters) {
this.parameters = parameters;
return this;

Check warning on line 146 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/HttpToolDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/HttpToolDTO.java#L145-L146

Added lines #L145 - L146 were not covered by tests
}


@ApiModelProperty(value = "")
@Valid
@JsonProperty("queryParameters")
public Object getQueryParameters() {
return queryParameters;
@JsonProperty("parameters")
public Object getParameters() {
return parameters;

Check warning on line 154 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/HttpToolDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/HttpToolDTO.java#L154

Added line #L154 was not covered by tests
}
public void setQueryParameters(Object queryParameters) {
this.queryParameters = queryParameters;
}

/**
**/
public HttpToolDTO pathParameters(Object pathParameters) {
this.pathParameters = pathParameters;
return this;
}


@ApiModelProperty(value = "")
@Valid
@JsonProperty("pathParameters")
public Object getPathParameters() {
return pathParameters;
}
public void setPathParameters(Object pathParameters) {
this.pathParameters = pathParameters;
public void setParameters(Object parameters) {
this.parameters = parameters;
}

Check warning on line 158 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/HttpToolDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/HttpToolDTO.java#L157-L158

Added lines #L157 - L158 were not covered by tests

/**
Expand Down Expand Up @@ -208,14 +189,13 @@ public boolean equals(java.lang.Object o) {
Objects.equals(description, httpTool.description) &&
Objects.equals(method, httpTool.method) &&
Objects.equals(path, httpTool.path) &&
Objects.equals(queryParameters, httpTool.queryParameters) &&
Objects.equals(pathParameters, httpTool.pathParameters) &&
Objects.equals(parameters, httpTool.parameters) &&
Objects.equals(requestBody, httpTool.requestBody);
}

@Override
public int hashCode() {
return Objects.hash(name, description, method, path, queryParameters, pathParameters, requestBody);
return Objects.hash(name, description, method, path, parameters, requestBody);

Check warning on line 198 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/HttpToolDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/HttpToolDTO.java#L198

Added line #L198 was not covered by tests
}

@Override
Expand All @@ -227,8 +207,7 @@ public String toString() {
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" method: ").append(toIndentedString(method)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).append("\n");
sb.append(" queryParameters: ").append(toIndentedString(queryParameters)).append("\n");
sb.append(" pathParameters: ").append(toIndentedString(pathParameters)).append("\n");
sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n");
sb.append(" requestBody: ").append(toIndentedString(requestBody)).append("\n");
sb.append("}");
return sb.toString();

Check warning on line 213 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/HttpToolDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/HttpToolDTO.java#L206-L213

Added lines #L206 - L213 were not covered by tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public class SettingsDTO {
private String passwordPolicyPattern = null;
private Integer passwordPolicyMinLength = null;
private Integer passwordPolicyMaxLength = null;
private Boolean isApiChatEnabled = true;
private Boolean isAIFeatureAuthTokenProvided = false;

Check warning on line 43 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java#L42-L43

Added lines #L42 - L43 were not covered by tests

/**
**/
Expand Down Expand Up @@ -235,7 +237,7 @@ public SettingsDTO isJWTEnabledForLoginTokens(Boolean isJWTEnabledForLoginTokens
return this;
}


@ApiModelProperty(value = "")
@JsonProperty("IsJWTEnabledForLoginTokens")
public Boolean isIsJWTEnabledForLoginTokens() {
Expand Down Expand Up @@ -317,6 +319,42 @@ public void setPasswordPolicyMaxLength(Integer passwordPolicyMaxLength) {
this.passwordPolicyMaxLength = passwordPolicyMaxLength;
}

/**
* Specifies whether API Chat feature is enabled.
**/
public SettingsDTO isApiChatEnabled(Boolean isApiChatEnabled) {
this.isApiChatEnabled = isApiChatEnabled;
return this;

Check warning on line 327 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java#L326-L327

Added lines #L326 - L327 were not covered by tests
}


@ApiModelProperty(value = "Specifies whether API Chat feature is enabled.")
@JsonProperty("isApiChatEnabled")
public Boolean isIsApiChatEnabled() {
return isApiChatEnabled;

Check warning on line 334 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java#L334

Added line #L334 was not covered by tests
}
public void setIsApiChatEnabled(Boolean isApiChatEnabled) {
this.isApiChatEnabled = isApiChatEnabled;
}

Check warning on line 338 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java#L337-L338

Added lines #L337 - L338 were not covered by tests

/**
* Checks if the auth token is provided for AI service usage.
**/
public SettingsDTO isAIFeatureAuthTokenProvided(Boolean isAIFeatureAuthTokenProvided) {
this.isAIFeatureAuthTokenProvided = isAIFeatureAuthTokenProvided;
return this;

Check warning on line 345 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java#L344-L345

Added lines #L344 - L345 were not covered by tests
}


@ApiModelProperty(value = "Checks if the auth token is provided for AI service usage.")
@JsonProperty("isAIFeatureAuthTokenProvided")
public Boolean isIsAIFeatureAuthTokenProvided() {
return isAIFeatureAuthTokenProvided;

Check warning on line 352 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java#L352

Added line #L352 was not covered by tests
}
public void setIsAIFeatureAuthTokenProvided(Boolean isAIFeatureAuthTokenProvided) {
this.isAIFeatureAuthTokenProvided = isAIFeatureAuthTokenProvided;
}

Check warning on line 356 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java#L355-L356

Added lines #L355 - L356 were not covered by tests


@Override
public boolean equals(java.lang.Object o) {
Expand All @@ -342,12 +380,14 @@ public boolean equals(java.lang.Object o) {
Objects.equals(userStorePasswordPattern, settings.userStorePasswordPattern) &&
Objects.equals(passwordPolicyPattern, settings.passwordPolicyPattern) &&
Objects.equals(passwordPolicyMinLength, settings.passwordPolicyMinLength) &&
Objects.equals(passwordPolicyMaxLength, settings.passwordPolicyMaxLength);
Objects.equals(passwordPolicyMaxLength, settings.passwordPolicyMaxLength) &&
Objects.equals(isApiChatEnabled, settings.isApiChatEnabled) &&
Objects.equals(isAIFeatureAuthTokenProvided, settings.isAIFeatureAuthTokenProvided);
}

@Override
public int hashCode() {
return Objects.hash(grantTypes, scopes, applicationSharingEnabled, mapExistingAuthApps, apiGatewayEndpoint, monetizationEnabled, recommendationEnabled, isUnlimitedTierPaid, identityProvider, isAnonymousModeEnabled, isPasswordChangeEnabled, isJWTEnabledForLoginTokens, userStorePasswordPattern, passwordPolicyPattern, passwordPolicyMinLength, passwordPolicyMaxLength);
return Objects.hash(grantTypes, scopes, applicationSharingEnabled, mapExistingAuthApps, apiGatewayEndpoint, monetizationEnabled, recommendationEnabled, isUnlimitedTierPaid, identityProvider, isAnonymousModeEnabled, isPasswordChangeEnabled, userStorePasswordPattern, passwordPolicyPattern, passwordPolicyMinLength, passwordPolicyMaxLength);

Check warning on line 390 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java#L390

Added line #L390 was not covered by tests
}

@Override
Expand All @@ -371,6 +411,8 @@ public String toString() {
sb.append(" passwordPolicyPattern: ").append(toIndentedString(passwordPolicyPattern)).append("\n");
sb.append(" passwordPolicyMinLength: ").append(toIndentedString(passwordPolicyMinLength)).append("\n");
sb.append(" passwordPolicyMaxLength: ").append(toIndentedString(passwordPolicyMaxLength)).append("\n");
sb.append(" isApiChatEnabled: ").append(toIndentedString(isApiChatEnabled)).append("\n");
sb.append(" isAIFeatureAuthTokenProvided: ").append(toIndentedString(isAIFeatureAuthTokenProvided)).append("\n");

Check warning on line 415 in components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.store.v1/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/v1/dto/SettingsDTO.java#L414-L415

Added lines #L414 - L415 were not covered by tests
sb.append("}");
return sb.toString();
}
Expand Down
Loading

0 comments on commit 5698069

Please sign in to comment.