Skip to content

Commit

Permalink
Fix reading of custom name
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Oct 9, 2020
1 parent 9c47739 commit d7e64bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/RouteDocs/DocsViewContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fileprivate extension HTTPMethod {

fileprivate extension DocumentationType {
func docsTypeName(using namePath: KeyPath<DocumentationType, String>?) -> String {
namePath.map { self[keyPath: $0] } ?? typeDescription.typeName(includingModule: false)
customName ?? namePath.map { self[keyPath: $0] } ?? typeDescription.typeName(includingModule: false)
}
}

Expand Down

0 comments on commit d7e64bd

Please sign in to comment.