Skip to content

Commit

Permalink
fixed allOf data
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario.RuizSanchez committed Jun 18, 2019
1 parent 06c1dee commit edec312
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/open_api_import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ def self.from(swagger_file, create_method_name: :operation_id, include_responses
bodies = p[:schema][:anyOf]
elsif p[:schema].key?(:allOf)
data_examples_all_of, bodies = get_data_all_of_bodies(p)
data_examples_all_of = true # because we are on data and allOf already
else
bodies = [p[:schema]]
end
Expand Down
4 changes: 2 additions & 2 deletions open_api_import.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'open_api_import'
s.version = '0.7.4'
s.version = '0.7.5'
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"]
Expand All @@ -11,7 +11,7 @@ Gem::Specification.new do |s|
s.license = 'MIT'
s.add_runtime_dependency 'oas_parser', '~> 0.16', '>= 0.16.0'
s.add_runtime_dependency 'rufo', '~> 0.4', '>= 0.4.1'
s.add_runtime_dependency 'nice_hash', '~> 1.12', '>= 1.12.5'
s.add_runtime_dependency 'nice_hash', '~> 1.12', '>= 1.12.8'
s.add_development_dependency 'rspec', '~> 3.8', '>= 3.8.0'
s.add_development_dependency 'coveralls', '~> 0.8', '>= 0.8.22'
s.test_files = s.files.grep(%r{^(test|spec|features)/})
Expand Down

0 comments on commit edec312

Please sign in to comment.