Skip to content

Commit

Permalink
Decouple flatten from Sanitize command
Browse files Browse the repository at this point in the history
  • Loading branch information
lnash94 committed Sep 25, 2024
1 parent 3434ba6 commit bd54930
Show file tree
Hide file tree
Showing 3 changed files with 305 additions and 281 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public String getDefaultFileName() {
@Override
public Optional<OpenAPI> generate(String openAPIFileContent) {
Optional<OpenAPI> filteredOpenAPI = getFilteredOpenAPI(openAPIFileContent);
return filteredOpenAPI.flatMap(this::getFlattenOpenAPI).flatMap(this::sanitizeOpenAPI);
return filteredOpenAPI.flatMap(this::sanitizeOpenAPI);
}

private Optional<OpenAPI> sanitizeOpenAPI(OpenAPI openAPI) {
Expand Down
Loading

0 comments on commit bd54930

Please sign in to comment.