Skip to content

Commit

Permalink
sort supported formats help
Browse files Browse the repository at this point in the history
  • Loading branch information
Reuven committed Feb 3, 2024
1 parent 85e052b commit 10be231
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions formatters/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package formatters

import (
"fmt"
"sort"

"github.com/getkin/kin-openapi/openapi3"
"github.com/tufin/oasdiff/checker"
Expand Down Expand Up @@ -64,6 +65,7 @@ func SupportedFormatsByContentType(output Output) []string {
formats = append(formats, string(k))
}
}
sort.Strings(formats)
return formats
}

Expand Down

0 comments on commit 10be231

Please sign in to comment.