diff --git a/lib/open_api_import.rb b/lib/open_api_import.rb index 1e2ec20..de809e6 100644 --- a/lib/open_api_import.rb +++ b/lib/open_api_import.rb @@ -467,7 +467,7 @@ def self.from(swagger_file, create_method_name: :operation_id, include_responses paramst.concat params params = paramst end - + params.uniq! output << "def self.#{method_name} (#{params.join(", ")})" output << "{" diff --git a/open_api_import.gemspec b/open_api_import.gemspec index c755bb4..eead3a7 100644 --- a/open_api_import.gemspec +++ b/open_api_import.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'open_api_import' - s.version = '0.10.1' + s.version = '0.10.2' s.summary = "OpenApiImport -- Import a Swagger or Open API file and create a Ruby Request Hash file including all requests and responses with all the examples. The file can be in JSON or YAML" s.description = "OpenApiImport -- Import a Swagger or Open API file and create a Ruby Request Hash file including all requests and responses with all the examples. The file can be in JSON or YAML" s.authors = ["Mario Ruiz"]