The Swift5 generator doesn't rename the optional path query param, resulting in code like this:
open class func getAllMediaFilesWithRequestBuilder(..., path: String? = nil, ...) ... {
let path = "/api/2/media/files"
...
urlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
...
"path": path?.encodeToJSON(),
^-- Cannot use optional chaining on non-optional value of type 'String'
The Swift5 generator doesn't rename the optional
pathquery param, resulting in code like this: