Skip to content

Commit 48760f9

Browse files
authored
Sort path items by path (#29)
1 parent c4c7dfc commit 48760f9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/FeatherOpenAPIKit/Interfaces/Document.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ public extension Document {
168168
$0.pathItems
169169
}
170170
)
171+
.sorted { $0.path.value < $1.path.value }
171172
.reduce(into: [:]) { into, item in
172173
into[item.openAPIPath] = .init(item.openAPIPathItem())
173174
}

0 commit comments

Comments
 (0)