             else
               property = swaggerCollection.definitions[property["$ref"].split('/').pop()] if property["$ref"]
               property = property.properties if property.properties # Skip properties
-                          
+
               s = "{\n" +
                   ("#{indent_str_children}\"#{key}\" : #{@json_from_definition_schema(swaggerCollection, value, indent+1)}" for key, value of property).join(',\n') +
                   "\n#{indent_str}}"
 
         return s
-        
+
     @createSwaggerRequestUrl = (swaggerCollection, swaggerRequestPath, queries) ->
-      
+
         # Build swaggerRequestQueries
         if Object.keys(queries).length > 0
           swaggerRequestQueries = []
-        
+
         for key, value of queries
           swaggerRequestQueries.push "#{key}=#{value}"
-        
-        swaggerRequestUrl = swaggerCollection.schemes[0] + '://' +
-        swaggerCollection.host +
-        swaggerCollection.basePath +
-        swaggerRequestPath
-        
+
+        swaggerRequestUrl = (if swaggerCollection.schemes then swaggerCollection.schemes[0] else 'http') +
+          '://' +
+          (swaggerCollection.host or 'echo.luckymarmot.com') +
+          (swaggerCollection.basePath or '') +
+          swaggerRequestPath
+
         if swaggerRequestQueries
           swaggerRequestUrl = swaggerRequestUrl + '?' + swaggerRequestQueries.join('&')
-        
+
         return swaggerRequestUrl
-            
+
     @createPawGroup = (context, swaggerCollection, swaggerRequestPathName, swaggerRequestPathValue) ->
 
         # Create Paw group
         pawGroup = context.createRequestGroup swaggerRequestPathName
 
         for own swaggerRequestMethod, swaggerRequestValue of swaggerRequestPathValue
-              
+
             # Create a Paw request
             pawRequest = @createPawRequest context, swaggerCollection, swaggerRequestPathName, swaggerRequestMethod, swaggerRequestValue
-    
+
             # Add request to root group
             pawGroup.appendChild pawRequest
 
         return pawGroup
-        
+
     @importString = (context, string) ->
-        
+
         try
           # Try JSON parse
           swaggerCollection = JSON.parse string
         catch error
           # Try YAML parse
           swaggerCollection = yaml.load string
-        
+
         schema = readFile "schema.json"
         valid = tv4.validate swaggerCollection, JSON.parse(schema)
 
         if not valid
           throw new Error "Invalid Swagger file (invalid schema or schema version < 2.0)"
-        
+
         if swaggerCollection
-          
+
           # Define host to localhost if not specified in file
           swaggerCollection.host = if swaggerCollection.host then swaggerCollection.host else 'localhost'
-          
+
           # Create a PawGroup
           pawRootGroup = context.createRequestGroup swaggerCollection.info.title
-          
+
           # Add Swagger groups
           for own swaggerRequestPathName, swaggerRequestPathValue of swaggerCollection.paths
-    
+
             pawGroup = @createPawGroup context, swaggerCollection, swaggerRequestPathName, swaggerRequestPathValue
 
             # Add group to root
             pawRootGroup.appendChild pawGroup
-      
+
           return true
-    
+
     return
 
 SwaggerImporter.identifier = "com.luckymarmot.PawExtensions.SwaggerImporter"

        else if typeof(property) == 'object'
            indent_str = Array(indent + 1).join('    ')
            indent_str_children = Array(indent + 2).join('    ')
            
            if property.items
              property = property.items
              s = "[\n" +

            # Set Multipart body
            else if headers['Content-Type'] == "multipart/form-data"
              pawRequest.multipartBody = formData

        return pawRequest

    @has_basic_auth = (swaggerCollection, swaggerRequestValue) ->
      if swaggerRequestValue.security
        for security in swaggerRequestValue.security
          for own key, value of security
            if swaggerCollection.securityDefinitions[key] and swaggerCollection.securityDefinitions[key].type == 'basic'
              return true
            break
      return false

    @json_from_definition_schema = (swaggerCollection, property, indent = 0) ->

        if property.type == 'string'
            s = "\"string\""
        else if property.type == 'integer'
