diff --git a/Sources/RouteDocs/EndpointDocumentation.swift b/Sources/RouteDocs/EndpointDocumentation.swift index 1abc704..9ce7d83 100644 --- a/Sources/RouteDocs/EndpointDocumentation.swift +++ b/Sources/RouteDocs/EndpointDocumentation.swift @@ -170,8 +170,8 @@ extension EndpointDocumentation.Payload { } @inlinable - public init(object: T.Type) throws { - try self.init(object: object, as: object.defaultContentType) + public init(object: T.Type, customUserInfo: [CodingUserInfoKey: Any] = [:]) throws { + try self.init(object: object, as: object.defaultContentType, customUserInfo: customUserInfo) } }