Skip to content

Commit

Permalink
missign dot on regexp for checking duplicated id data_pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRuiz committed Nov 12, 2020
1 parent 044b738 commit 0b0244e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/open_api_import.rb
Expand Up @@ -376,7 +376,7 @@ def self.from(swagger_file, create_method_name: :operation_id, include_responses
data_pattern.uniq!
dpkeys = []
data_pattern.reject! do |dp|
dpkey = dp.scan(/^'\w+'/)
dpkey = dp.scan(/^'[\w\.]+'/)

if dpkeys.include?(dpkey)
true
Expand Down
2 changes: 1 addition & 1 deletion open_api_import.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'open_api_import'
s.version = '0.10.7'
s.version = '0.10.8'
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 Down

0 comments on commit 0b0244e

Please sign in to comment.