     func registerRoute<Id: Identifier, I: Codable, O: Codable>(route: String, method: String, id: Id.Type, inputType: I.Type, outputType: O.Type, responseTypes: [SwaggerResponseType]) {
         Log.debug("Registering \(route) for \(method) method")
 
-        let typeInfo1: TypeInfo
+        let inputTypeInfo: TypeInfo
         do {
-            typeInfo1 = try TypeDecoder.decode(inputType)
+            inputTypeInfo = try TypeDecoder.decode(inputType)
         } catch {
-            Log.debug("failed to decode input type")
+            Log.debug("Failed to decode input type \(inputType)")
             return
         }
 
-        var typeInfo2: TypeInfo? = nil
+        var outputTypeInfo: TypeInfo? = nil
         if inputType != outputType {
             do {
-                typeInfo2 = try TypeDecoder.decode(outputType)
+                outputTypeInfo = try TypeDecoder.decode(outputType)
             } catch {
-                Log.debug("failed to decode output type")
+                Log.debug("Failed to decode output type \(outputType)")
                 return
             }
         }

            let model = String(describing: name)
            var modelDefinition: SwaggerModel

            // then build all it
            if let modelInfo = try? buildModel(typeInfo) {
                Log.debug("in addModel(model: \(model))")

        swagger.addPath(path: route, method: method, id: "\(id)", qParams: nil, inputType: "\(inputType)", responseList: responseTypes)

        // add model information into the document structure.
        swagger.addModel(model: inputTypeInfo)
        if let outputTypeInfo = outputTypeInfo {
            swagger.addModel(model: outputTypeInfo)
        }

        // now walk all the unprocessed models and ensure they are processed.
