Skip to content

Commit

Permalink
Allow custom decoder user info to be passed
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Jul 16, 2020
1 parent 7ad6b4f commit 21ab876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/RouteDocs/EndpointDocumentation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ extension EndpointDocumentation.Payload {
}

@inlinable
public init<T: Content>(object: T.Type) throws {
try self.init(object: object, as: object.defaultContentType)
public init<T: Content>(object: T.Type, customUserInfo: [CodingUserInfoKey: Any] = [:]) throws {
try self.init(object: object, as: object.defaultContentType, customUserInfo: customUserInfo)
}
}

Expand Down

0 comments on commit 21ab876

Please sign in to comment.