diff --git a/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java b/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java index 435afed890..c7a782b4e5 100644 --- a/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java +++ b/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java @@ -264,10 +264,7 @@ public XContentBuilder errorsAsXContent(RestChannel channel) { case WEAK_PASSWORD: case SIMILAR_PASSWORD: builder.field("status", "error"); - builder.field( - "reason", - errorType.message - ); + builder.field("reason", errorType.message); break; case WRONG_DATATYPE: builder.field("status", "error");