Skip to content

Commit

Permalink
Sort input files
Browse files Browse the repository at this point in the history
  • Loading branch information
algattik committed May 16, 2022
1 parent 0ee10d2 commit 8ad4a2a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ class OpenApiMergerApp {
// Walk the input directory and merge all files into one
inputDir.walk().filter {
validFileExtension.contains(it.extension)
}.sortedBy {
it
}.forEach {
log.debug("Parsing OpenAPI file {}", it.absolutePath)
val openAPI = OpenAPIV3Parser().read(it.absolutePath, null, parseOptions)
Expand Down

0 comments on commit 8ad4a2a

Please sign in to comment.