Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Krishnananthalingam Tharmigan <63336800+TharmiganK@users.noreply.github.com>
  • Loading branch information
SachinAkash01 and TharmiganK authored Jan 8, 2025
1 parent 932b234 commit f027876
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ private static OpenAPI modifyOASWithSchemaName(OpenAPI openapi, Map<String, Stri
if (Objects.isNull(openAPI)) {
List<String> messages = parseResult.getMessages();
if (Objects.nonNull(messages) && !messages.isEmpty()) {
outErrorStream.println("Schema name sanitization contains errors: ");
outErrorStream.println("Aligning schema name for Ballerina contains errors: ");
messages.forEach(outErrorStream::println);
}
throw new BallerinaOpenApiException("Failed to generate the aligned OpenAPI specification. Please " +
throw new BallerinaOpenApiException("Failed to align the OpenAPI specification for Ballerina. Please " +
"consider generating the client/service without the sanitization option.");
}
return openAPI;
Expand Down

0 comments on commit f027876

Please sign in to comment.